Skip to content
Snippets Groups Projects
Commit 15a5f49c authored by Paul B Mahol's avatar Paul B Mahol
Browse files

avcodec/flashsv: check return value of flashsv_decode_init()

parent ae227fa1
No related branches found
No related tags found
No related merge requests found
...@@ -551,7 +551,11 @@ static const uint32_t ff_flashsv2_default_palette[128] = { ...@@ -551,7 +551,11 @@ static const uint32_t ff_flashsv2_default_palette[128] = {
static av_cold int flashsv2_decode_init(AVCodecContext *avctx) static av_cold int flashsv2_decode_init(AVCodecContext *avctx)
{ {
FlashSVContext *s = avctx->priv_data; 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->pal = ff_flashsv2_default_palette;
s->ver = 2; s->ver = 2;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment