mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/gifdec: check ff_lzw_decode_open() for failure
This commit is contained in:
parent
4cfb01d6ae
commit
158043bae8
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user