Commit a60e54d13f for ffmpeg

commit a60e54d13f4ee6b7f4ec23a0130c6c4812ee59f4
Author: Michael Niedermayer <michael@niedermayer.cc>
Date:   Sat Nov 7 00:16:12 2026 +0100

    avfilter/vf_stereo3d: require an even chroma height for above-below and interleaved rows input

    With an odd number of rows in a vertically subsampled plane, the second
    view has one row less than the output height requires

    Fixes: heap-buffer-overflow (read)
    Fixes: DVVOyNZC90mi

    Found during triage of the security report i9omtrAF7zcc

    Out of array read Replicated through UnModified FFmpeg with ASAN

diff --git a/libavfilter/vf_stereo3d.c b/libavfilter/vf_stereo3d.c
index 15d6f31c11..4037f90eae 100644
--- a/libavfilter/vf_stereo3d.c
+++ b/libavfilter/vf_stereo3d.c
@@ -396,6 +396,10 @@ static int config_output(AVFilterLink *outlink)
             av_log(ctx, AV_LOG_ERROR, "height must be even\n");
             return AVERROR_INVALIDDATA;
         }
+        if (AV_CEIL_RSHIFT(inlink->h, desc->log2_chroma_h) & 1) {
+            av_log(ctx, AV_LOG_ERROR, "chroma height must be even\n");
+            return AVERROR_INVALIDDATA;
+        }
         break;
     }