X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fflashsv.c;h=1dc3c710dcbe88dab34530d8a92eef5049001cc6;hb=c6db2e97dcd246234b958814450d3fd12a5c8c27;hp=90e1d43cdad6c02a4b56a60341634af370827da7;hpb=de33b3e457a656230fc6d544a1889218d77a5b3c;p=ffmpeg diff --git a/libavcodec/flashsv.c b/libavcodec/flashsv.c index 90e1d43cdad..1dc3c710dcb 100644 --- a/libavcodec/flashsv.c +++ b/libavcodec/flashsv.c @@ -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;