[FFmpeg-cvslog] avcodec/flashsv: check return value of flashsv_decode_init()

Paul B Mahol git at videolan.org
Sat Sep 8 22:42:11 EEST 2018


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Sep  8 20:29:34 2018 +0200| [15a5f49c0b6b8769056eb70050a6deb27a9da4d4] | committer: Paul B Mahol

avcodec/flashsv: check return value of flashsv_decode_init()

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=15a5f49c0b6b8769056eb70050a6deb27a9da4d4
---

 libavcodec/flashsv.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/libavcodec/flashsv.c b/libavcodec/flashsv.c
index 90e1d43cda..1dc3c710dc 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;
 



More information about the ffmpeg-cvslog mailing list