Commit bf5db41d84 for ffmpeg

commit bf5db41d847d20e8ca6197b3f0def00712c8785c
Author: Michael Niedermayer <michael@niedermayer.cc>
Date:   Fri Nov 13 01:57:56 2026 +0100

    avfilter/aeval: limit the channel index of val() as unsigned

    Fixes: heap-buffer-overflow (read)

    Found during triage of the security report nw59dSqw4SNa

    Out of array read Replicated through UnModified FFmpeg with ASAN

diff --git a/libavfilter/aeval.c b/libavfilter/aeval.c
index baea5886fc..e88cb331ff 100644
--- a/libavfilter/aeval.c
+++ b/libavfilter/aeval.c
@@ -77,7 +77,7 @@ typedef struct EvalContext {
 static double val(void *priv, double ch)
 {
     EvalContext *eval = priv;
-    return eval->channel_values[FFMIN((int)ch, eval->nb_in_channels-1)];
+    return eval->channel_values[FFMIN((unsigned)(int)ch, eval->nb_in_channels-1)];
 }

 static double (* const aeval_func1[])(void *, double) = { val, NULL };