summaryrefslogtreecommitdiff
path: root/ffmpeg_filter.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-10-24 22:00:37 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-10-24 23:15:30 +0200
commitda54ad9a7208534f39939ee3700f1ccfea92a69d (patch)
tree3abd5dd6b039c6b830f1f1b39354c37031fa5ab5 /ffmpeg_filter.c
parent6c9c636c00223a7f9328172a8ef9b1891af9cced (diff)
ffmpeg_filter: Pass command line -threads X to filtergraph
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg_filter.c')
-rw-r--r--ffmpeg_filter.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ffmpeg_filter.c b/ffmpeg_filter.c
index 80089fff4b..76d3be6242 100644
--- a/ffmpeg_filter.c
+++ b/ffmpeg_filter.c
@@ -860,6 +860,10 @@ int configure_filtergraph(FilterGraph *fg)
if (strlen(args))
args[strlen(args) - 1] = '\0';
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)