Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2022-04-29 22:14:32 +0300
committerPaul B Mahol <onemda@gmail.com>2022-04-29 23:27:39 +0300
commit1148e5f1cca6e00f2e4bd123978ad9e6c1790198 (patch)
tree78257b9e63ebdeb61cf5f96c676ffa414e2fd055 /libavfilter/vf_xmedian.c
parent3415028d139c36406c2e7695f0c923fb01213ef1 (diff)
avfilter/vf_xmedian: fix multiple threads usage
Diffstat (limited to 'libavfilter/vf_xmedian.c')
-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);
}