Browse Source

avcodec/flashsv: check return value of flashsv_decode_init()

tags/n4.1
Paul B Mahol 6 years ago
parent
commit
15a5f49c0b
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      libavcodec/flashsv.c

+ 5
- 1
libavcodec/flashsv.c View File

@@ -551,7 +551,11 @@ static const uint32_t ff_flashsv2_default_palette[128] = {
static av_cold int flashsv2_decode_init(AVCodecContext *avctx)
{
FlashSVContext *s = avctx->priv_data;
flashsv_decode_init(avctx);
int ret;

ret = flashsv_decode_init(avctx);
if (ret < 0)
return ret;
s->pal = ff_flashsv2_default_palette;
s->ver = 2;



Loading…
Cancel
Save