Skip to content

Commit

Permalink
ffmpeg_filter: Pass command line -threads X to filtergraph
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
  • Loading branch information
michaelni committed Oct 24, 2013
1 parent 6c9c636 commit da54ad9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ffmpeg_filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit da54ad9

Please sign in to comment.