diff options
author | Paul B Mahol <onemda@gmail.com> | 2022-04-29 21:14:32 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2022-04-29 22:27:39 +0200 |
commit | 1148e5f1cca6e00f2e4bd123978ad9e6c1790198 (patch) | |
tree | 78257b9e63ebdeb61cf5f96c676ffa414e2fd055 | |
parent | 3415028d139c36406c2e7695f0c923fb01213ef1 (diff) | |
download | ffmpeg-1148e5f1cca6e00f2e4bd123978ad9e6c1790198.tar.gz |
avfilter/vf_xmedian: fix multiple threads usage
-rw-r--r-- | libavfilter/vf_xmedian.c | 2 |
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); } |