This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit c1d3e8c46f435bf5748df67a0e55c4dac287b12c
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sun May 31 20:21:47 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Wed Jun 3 20:35:41 2026 +0000

    avcodec/imm5: propagate max_pixels to the H264/HEVC sub-decoders
    
    Fixes: 
501794495/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_IMM5_fuzzer-5192457796255744
    Found-by: continuous fuzzing process 
https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavcodec/imm5.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/imm5.c b/libavcodec/imm5.c
index b1cda453c9..d130db76ae 100644
--- a/libavcodec/imm5.c
+++ b/libavcodec/imm5.c
@@ -62,6 +62,7 @@ static av_cold int imm5_init(AVCodecContext *avctx)
     ctx->h264_avctx->thread_count = 1;
     ctx->h264_avctx->flags        = avctx->flags;
     ctx->h264_avctx->flags2       = avctx->flags2;
+    ctx->h264_avctx->max_pixels   = avctx->max_pixels;
     ret = avcodec_open2(ctx->h264_avctx, NULL, NULL);
     if (ret < 0)
         return ret;
@@ -73,6 +74,7 @@ static av_cold int imm5_init(AVCodecContext *avctx)
     ctx->hevc_avctx->thread_count = 1;
     ctx->hevc_avctx->flags        = avctx->flags;
     ctx->hevc_avctx->flags2       = avctx->flags2;
+    ctx->hevc_avctx->max_pixels   = avctx->max_pixels;
     ret = avcodec_open2(ctx->hevc_avctx, NULL, NULL);
     if (ret < 0)
         return ret;

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to