Commit 158043ba authored by Paul B Mahol's avatar Paul B Mahol

avcodec/gifdec: check ff_lzw_decode_open() for failure

parent 4cfb01d6
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment