Commit da54ad9a authored by Michael Niedermayer's avatar Michael Niedermayer

ffmpeg_filter: Pass command line -threads X to filtergraph

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 6c9c636c
...@@ -860,6 +860,10 @@ int configure_filtergraph(FilterGraph *fg) ...@@ -860,6 +860,10 @@ int configure_filtergraph(FilterGraph *fg)
if (strlen(args)) if (strlen(args))
args[strlen(args) - 1] = '\0'; args[strlen(args) - 1] = '\0';
fg->graph->resample_lavr_opts = av_strdup(args); fg->graph->resample_lavr_opts = av_strdup(args);
e = av_dict_get(ost->opts, "threads", NULL, 0);
if (e)
av_opt_set(fg->graph, "threads", e->value, 0);
} }
if ((ret = avfilter_graph_parse2(fg->graph, graph_desc, &inputs, &outputs)) < 0) if ((ret = avfilter_graph_parse2(fg->graph, graph_desc, &inputs, &outputs)) < 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment