Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2018-09-08 21:29:34 +0300
committerPaul B Mahol <onemda@gmail.com>2018-09-08 21:29:34 +0300
commit15a5f49c0b6b8769056eb70050a6deb27a9da4d4 (patch)
tree4d46817c2004416227182903cff221f588b9951c /libavcodec/flashsv.c
parentae227fa1f27e43e2541434e5fa94521d9deda86f (diff)
avcodec/flashsv: check return value of flashsv_decode_init()
Diffstat (limited to 'libavcodec/flashsv.c')
-rw-r--r--libavcodec/flashsv.c6
1 files changed, 5 insertions, 1 deletions
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;