mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02: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