summaryrefslogtreecommitdiff
path: root/libavfilter/vf_scale.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-07-07 18:42:15 +0200
committerAnton Khirnov <anton@khirnov.net>2021-09-06 09:18:05 +0200
commit60515a6d610491f030aaa4cf230d0367a85e2d4b (patch)
tree778514dbc2bbe3892468e75a83215eed35666931 /libavfilter/vf_scale.c
parentd6fdc78e9164c8e6bf7bfc7766932c467b874aa2 (diff)
lavfi/vf_scale: pass the thread count to the scaler
Diffstat (limited to 'libavfilter/vf_scale.c')
-rw-r--r--libavfilter/vf_scale.c1
1 files changed, 1 insertions, 0 deletions
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);