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

avcodec/gifdec: check ff_lzw_decode_open() for failure

parent 4cfb01d6
No related branches found
No related tags found
No related merge requests found
......@@ -451,6 +451,8 @@ static av_cold int gif_decode_init(AVCodecContext *avctx)
if (!s->frame)
return AVERROR(ENOMEM);
ff_lzw_decode_open(&s->lzw);
if (!s->lzw)
return AVERROR(ENOMEM);
return 0;
}
......
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