Commit 5732075535 for ffmpeg
commit 573207553589765bed4cd3727fe184864ea1559b
Author: Michael Niedermayer <michael@niedermayer.cc>
Date: Sun Oct 11 00:01:08 2026 +0200
avfilter/vf_colordetect: derive the slice count from the frame height
diff --git a/libavfilter/vf_colordetect.c b/libavfilter/vf_colordetect.c
index f98905b6c6..d1a7ba6f49 100644
--- a/libavfilter/vf_colordetect.c
+++ b/libavfilter/vf_colordetect.c
@@ -218,7 +218,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
{
AVFilterContext *ctx = inlink->dst;
ColorDetectContext *s = ctx->priv;
- const int nb_threads = FFMIN(inlink->h, s->nb_threads);
+ const int nb_threads = FFMIN(in->height, s->nb_threads);
enum AVColorRange detected_range = atomic_load_explicit(&s->detected_range, memory_order_relaxed);
if (s->mode & COLOR_DETECT_COLOR_RANGE && detected_range == AVCOL_RANGE_UNSPECIFIED)