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

Git pushed a commit to branch release/9.1
in repository ffmpeg.

commit a2350ab085f9d0da350672b4120098c24f8b35d4
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Wed Nov 11 19:18:06 2026 +0100
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sun Nov 15 21:19:57 2026 +0100

    avfilter/vf_lcevc: allocate the output frame for the picture LCEVCdec 
outputs
    
    Fixes: out of array write
    Fixes: MO1ctCOYehkw
    Fixes: vf-lcevc-4x.ts
    Out of array write Replicated through UnModified FFmpeg with ASAN
    
    Found-by: betah4k
    (cherry picked from commit 18490ceca0d0b8a1aff0bb05abe82c59ccdbe7ff)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavfilter/vf_lcevc.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/libavfilter/vf_lcevc.c b/libavfilter/vf_lcevc.c
index 01e5ded900..6fe6edb61f 100644
--- a/libavfilter/vf_lcevc.c
+++ b/libavfilter/vf_lcevc.c
@@ -354,6 +354,18 @@ static int activate(AVFilterContext *ctx)
             av_frame_free(&in);
             return ret;
         }
+
+        LCEVC_PictureDesc desc;
+        if (LCEVC_PeekDecoderPictureDesc(lcevc->decoder, in->pts, &desc) != 
LCEVC_Success ||
+            desc.colorFormat != map_format(outlink->format)) {
+            av_log(ctx, AV_LOG_ERROR, "Unsupported enhanced picture\n");
+            LCEVC_SkipDecoder(lcevc->decoder, in->pts);
+            LCEVC_SynchronizeDecoder(lcevc->decoder, 0);
+            flush_bases(ctx);
+            return AVERROR_EXTERNAL;
+        }
+        lcevc->w = desc.width;
+        lcevc->h = desc.height;
     }
 
     out = ff_get_video_buffer(outlink, lcevc->w, lcevc->h);

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to