mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-28 17:51:05 +00:00
avcodec/tiff: check ff_lzw_decode_open() for failure
This commit is contained in:
parent
39cfb722ee
commit
05df39cf3f
@ -1403,6 +1403,8 @@ static av_cold int tiff_init(AVCodecContext *avctx)
|
||||
s->subsampling[1] = 1;
|
||||
s->avctx = avctx;
|
||||
ff_lzw_decode_open(&s->lzw);
|
||||
if (!s->lzw)
|
||||
return AVERROR(ENOMEM);
|
||||
ff_ccitt_unpack_init();
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user