[FFmpeg-cvslog] lavfi/vf_scale: pass the thread count to the scaler
Anton Khirnov
git at videolan.org
Mon Sep 6 10:23:13 EEST 2021
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Wed Jul 7 18:42:15 2021 +0200| [60515a6d610491f030aaa4cf230d0367a85e2d4b] | committer: Anton Khirnov
lavfi/vf_scale: pass the thread count to the scaler
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=60515a6d610491f030aaa4cf230d0367a85e2d4b
---
libavfilter/vf_scale.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c
index aeededd38a..6c7f4dc9ab 100644
--- a/libavfilter/vf_scale.c
+++ b/libavfilter/vf_scale.c
@@ -542,6 +542,7 @@ static int config_props(AVFilterLink *outlink)
av_opt_set_int(s, "sws_flags", scale->flags, 0);
av_opt_set_int(s, "param0", scale->param[0], 0);
av_opt_set_int(s, "param1", scale->param[1], 0);
+ av_opt_set_int(s, "threads", ff_filter_get_nb_threads(ctx), 0);
if (scale->in_range != AVCOL_RANGE_UNSPECIFIED)
av_opt_set_int(s, "src_range",
scale->in_range == AVCOL_RANGE_JPEG, 0);
More information about the ffmpeg-cvslog
mailing list