From ea01723885d12c508c08bbcd6b927b0e176cfb24 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 31 May 2026 21:26:52 +0200 Subject: [PATCH] avcodec/tdsc: propagate max_pixels to the JPEG tile decoder Signed-off-by: Michael Niedermayer (cherry picked from commit 47f3996bdd1069b4e46dfcc7ad6c887c2af408e0) Signed-off-by: Michael Niedermayer --- libavcodec/tdsc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/tdsc.c b/libavcodec/tdsc.c index 763ad5cc2f..8baf8e9d93 100644 --- a/libavcodec/tdsc.c +++ b/libavcodec/tdsc.c @@ -127,6 +127,7 @@ static av_cold int tdsc_init(AVCodecContext *avctx) ctx->jpeg_avctx->flags = avctx->flags; ctx->jpeg_avctx->flags2 = avctx->flags2; ctx->jpeg_avctx->idct_algo = avctx->idct_algo; + ctx->jpeg_avctx->max_pixels = avctx->max_pixels; ret = avcodec_open2(ctx->jpeg_avctx, NULL, NULL); if (ret < 0) return ret;