X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=ffmpeg_filter.c;h=006401476ef15ef92c58c5c26907676c4c8adf1c;hb=2eebcda10a65e7d3b0de7f45e49e2636f9b6c8a3;hp=7b29e0cf69eef13c585a05522a9ab0f4907498b4;hpb=8ef6ba69c7f2010383eac12d5a7f2e24238ac10e;p=ffmpeg diff --git a/ffmpeg_filter.c b/ffmpeg_filter.c index 7b29e0cf69e..006401476ef 100644 --- a/ffmpeg_filter.c +++ b/ffmpeg_filter.c @@ -39,9 +39,6 @@ #include "libavutil/imgutils.h" #include "libavutil/samplefmt.h" -int filter_nbthreads = -1; -int filter_complex_nbthreads = -1; - static const enum AVPixelFormat *get_compliance_unofficial_pix_fmts(enum AVCodecID codec_id, const enum AVPixelFormat default_formats[]) { static const enum AVPixelFormat mjpeg_formats[] = @@ -993,7 +990,7 @@ int configure_filtergraph(FilterGraph *fg) char args[512]; AVDictionaryEntry *e = NULL; - fg->graph->nb_threads = filter_complex_nbthreads; + fg->graph->nb_threads = filter_nbthreads; args[0] = 0; while ((e = av_dict_get(ost->sws_dict, "", e, @@ -1026,7 +1023,7 @@ int configure_filtergraph(FilterGraph *fg) if (e) av_opt_set(fg->graph, "threads", e->value, 0); } else { - fg->graph->nb_threads = filter_nbthreads; + fg->graph->nb_threads = filter_complex_nbthreads; } if ((ret = avfilter_graph_parse2(fg->graph, graph_desc, &inputs, &outputs)) < 0)