You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
lavfi/vf_scale: pass the thread count to the scaler
This commit is contained in:
@@ -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, "sws_flags", scale->flags, 0);
|
||||||
av_opt_set_int(s, "param0", scale->param[0], 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, "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)
|
if (scale->in_range != AVCOL_RANGE_UNSPECIFIED)
|
||||||
av_opt_set_int(s, "src_range",
|
av_opt_set_int(s, "src_range",
|
||||||
scale->in_range == AVCOL_RANGE_JPEG, 0);
|
scale->in_range == AVCOL_RANGE_JPEG, 0);
|
||||||
|
Reference in New Issue
Block a user