You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/gifdec: check ff_lzw_decode_open() for failure
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user