History

lavfi/vf_scale: pass the thread count to the scaler

Anton Khirnov committed 5 years ago

Commit 60515a61 parent d6fdc781 file · +1 −0Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/vf_scale.c+1−0
@@ -542,6 +542,7 @@ static int config_props(AVFilterLink *outlink) · 541 unmodified lines
542542 av_opt_set_int(s, "sws_flags", scale->flags, 0);
543543 av_opt_set_int(s, "param0", scale->param[0], 0);
544544 av_opt_set_int(s, "param1", scale->param[1], 0);
545+ av_opt_set_int(s, "threads", ff_filter_get_nb_threads(ctx), 0);
545546 if (scale->in_range != AVCOL_RANGE_UNSPECIFIED)
546547 av_opt_set_int(s, "src_range",
547548 scale->in_range == AVCOL_RANGE_JPEG, 0);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t