[FFmpeg-cvslog] avfilter/vf_xmedian: fix multiple threads usage

Paul B Mahol git at videolan.org
Fri Apr 29 23:26:14 EEST 2022


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Apr 29 21:14:32 2022 +0200| [1148e5f1cca6e00f2e4bd123978ad9e6c1790198] | committer: Paul B Mahol

avfilter/vf_xmedian: fix multiple threads usage

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1148e5f1cca6e00f2e4bd123978ad9e6c1790198
---

 libavfilter/vf_xmedian.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
 }



More information about the ffmpeg-cvslog mailing list