Commit 6d0546bb authored by Anton Khirnov's avatar Anton Khirnov

avfiltergraph: set deprecated filter_count.

parent bcc94328
...@@ -69,6 +69,10 @@ int avfilter_graph_add_filter(AVFilterGraph *graph, AVFilterContext *filter) ...@@ -69,6 +69,10 @@ int avfilter_graph_add_filter(AVFilterGraph *graph, AVFilterContext *filter)
graph->filters = filters; graph->filters = filters;
graph->filters[graph->nb_filters++] = filter; graph->filters[graph->nb_filters++] = filter;
#if FF_API_FOO_COUNT
graph->filter_count = graph->nb_filters;
#endif
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment