avfilter/vf_xmedian: fix multiple threads usage

This commit is contained in:
Paul B Mahol 2022-04-29 21:14:32 +02:00
parent 3415028d13
commit 1148e5f1cc
1 changed files with 1 additions and 1 deletions

View File

@ -430,7 +430,7 @@ static int tmedian_filter_frame(AVFilterLink *inlink, AVFrame *in)
td.out = out;
td.in = s->frames;
ff_filter_execute(ctx, s->median_frames, &td, NULL,
FFMIN(s->height[0], ff_filter_get_nb_threads(ctx)));
FFMIN(s->height[1], s->nb_threads));
return ff_filter_frame(outlink, out);
}