aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2022-04-29 21:14:32 +0200
committerPaul B Mahol <onemda@gmail.com>2022-04-29 22:27:39 +0200
commit1148e5f1cca6e00f2e4bd123978ad9e6c1790198 (patch)
tree78257b9e63ebdeb61cf5f96c676ffa414e2fd055
parent3415028d139c36406c2e7695f0c923fb01213ef1 (diff)
downloadffmpeg-1148e5f1cca6e00f2e4bd123978ad9e6c1790198.tar.gz
avfilter/vf_xmedian: fix multiple threads usage
-rw-r--r--libavfilter/vf_xmedian.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_xmedian.c b/libavfilter/vf_xmedian.c
index 96b6721d98..7f7f3de12a 100644
--- a/libavfilter/vf_xmedian.c
+++ b/libavfilter/vf_xmedian.c
@@ -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);
}