Commit fa10042f74 for ffmpeg

commit fa10042f748f20fad0cc0ee8fdcebe96b76603af
Author: Michael Niedermayer <michael@niedermayer.cc>
Date:   Sat Nov 14 01:57:50 2026 +0100

    avfilter/vf_deflicker: allocate the histogram for all 16 bit sample values

    Fixes: out of array write
    Fixes: QvFnGUZttUck
    Fixes: AISLE-2026-0166-00061

    Found-by: berrob14 (#24121)
    Found-by: Joshua Rogers (AISLE)

    Out of array write Replicated through UnModified FFmpeg with ASAN

diff --git a/libavfilter/vf_deflicker.c b/libavfilter/vf_deflicker.c
index 38f838f088..8bab1211c2 100644
--- a/libavfilter/vf_deflicker.c
+++ b/libavfilter/vf_deflicker.c
@@ -333,7 +333,7 @@ static int config_input(AVFilterLink *inlink)
         s->calc_avgy = calc_avgy16;
     }

-    s->histogram = av_calloc(1 << s->depth, sizeof(*s->histogram));
+    s->histogram = av_calloc(1 << (s->depth > 8 ? 16 : 8), sizeof(*s->histogram));
     if (!s->histogram)
         return AVERROR(ENOMEM);