Commit 05df39cf authored by Paul B Mahol's avatar Paul B Mahol

avcodec/tiff: check ff_lzw_decode_open() for failure

parent 39cfb722
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment