ffmpeg_filter: use nb_threads=1 on unused filtergraph
authorDHE <git@dehacked.net>
Fri, 17 Nov 2017 01:09:37 +0000 (20:09 -0500)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 19 Nov 2017 03:38:29 +0000 (04:38 +0100)
Signed-off-by: DHE <git@dehacked.net>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
fftools/ffmpeg_filter.c

index aacc185..877fd67 100644 (file)
@@ -340,6 +340,7 @@ int init_complex_filtergraph(FilterGraph *fg)
     graph = avfilter_graph_alloc();
     if (!graph)
         return AVERROR(ENOMEM);
+    graph->nb_threads = 1;
 
     ret = avfilter_graph_parse2(graph, fg->graph_desc, &inputs, &outputs);
     if (ret < 0)