Commit 24ad423d90 for ffmpeg

commit 24ad423d908cd595c983b6c503ddb0ee94901ba2
Author: Michael Niedermayer <michael@niedermayer.cc>
Date:   Sat Nov 14 05:23:08 2026 +0100

    avfilter/vf_deband: reject the coupling command for subsampled formats

    Fixes: out of array access
    Fixes: QJKTLuAvDBVR
    Fixes: AISLE-2026-0166-00123

    Found-by: Joshua Rogers (AISLE)

    Out of array read and write Replicated through UnModified FFmpeg with ASAN

diff --git a/libavfilter/vf_deband.c b/libavfilter/vf_deband.c
index 2ff4fca6fa..6dd08dd10f 100644
--- a/libavfilter/vf_deband.c
+++ b/libavfilter/vf_deband.c
@@ -438,11 +438,18 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
 static int process_command(AVFilterContext *ctx, const char *cmd, const char *args,
                            char *res, int res_len, int flags)
 {
+    DebandContext *s = ctx->priv;
     int ret = ff_filter_process_command(ctx, cmd, args, res, res_len, flags);

     if (ret < 0)
         return ret;

+    if (s->coupling && (s->shift[0] || s->shift[1])) {
+        av_log(ctx, AV_LOG_ERROR, "coupling needs a pixel format without chroma subsampling\n");
+        s->coupling = 0;
+        return AVERROR(EINVAL);
+    }
+
     return config_input(ctx->inputs[0]);
 }