[FFmpeg-cvslog] ffmpeg_filter: Pass command line -threads X to filtergraph

Michael Niedermayer git at videolan.org
Fri Oct 25 00:21:14 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Oct 24 22:00:37 2013 +0200| [da54ad9a7208534f39939ee3700f1ccfea92a69d] | committer: Michael Niedermayer

ffmpeg_filter: Pass command line -threads X to filtergraph

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=da54ad9a7208534f39939ee3700f1ccfea92a69d
---

 ffmpeg_filter.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ffmpeg_filter.c b/ffmpeg_filter.c
index 80089ff..76d3be6 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)



More information about the ffmpeg-cvslog mailing list