Browse Source

ffmpeg_filter: use nb_threads=1 on unused filtergraph

Signed-off-by: DHE <git@dehacked.net>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n4.0
DHE Michael Niedermayer 8 years ago
parent
commit
ae61bcbdf8
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      fftools/ffmpeg_filter.c

+ 1
- 0
fftools/ffmpeg_filter.c View 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)


Loading…
Cancel
Save