mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +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->subsampling[1] = 1;
|
||||||
s->avctx = avctx;
|
s->avctx = avctx;
|
||||||
ff_lzw_decode_open(&s->lzw);
|
ff_lzw_decode_open(&s->lzw);
|
||||||
|
if (!s->lzw)
|
||||||
|
return AVERROR(ENOMEM);
|
||||||
ff_ccitt_unpack_init();
|
ff_ccitt_unpack_init();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user