Skip to content

Commit

Permalink
avcodec/tiff: Pass max_pixels to mjpeg context
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Niedermayer <[email protected]>
  • Loading branch information
michaelni committed Dec 23, 2021
1 parent d8ea7a6 commit d6c16f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libavcodec/tiff.c
Original file line number Diff line number Diff line change
Expand Up @@ -2155,6 +2155,7 @@ static av_cold int tiff_init(AVCodecContext *avctx)
s->avctx_mjpeg->flags2 = avctx->flags2;
s->avctx_mjpeg->dct_algo = avctx->dct_algo;
s->avctx_mjpeg->idct_algo = avctx->idct_algo;
s->avctx_mjpeg->max_pixels = avctx->max_pixels;
ret = avcodec_open2(s->avctx_mjpeg, codec, NULL);
if (ret < 0) {
return ret;
Expand Down

0 comments on commit d6c16f4

Please sign in to comment.