]> git.sesse.net Git - ffmpeg/commitdiff
avfiltergraph: set deprecated filter_count.
authorAnton Khirnov <anton@khirnov.net>
Sat, 30 Mar 2013 21:15:48 +0000 (22:15 +0100)
committerAnton Khirnov <anton@khirnov.net>
Thu, 4 Apr 2013 05:52:32 +0000 (07:52 +0200)
libavfilter/avfiltergraph.c

index 06b6a101de351ecbc1cb6c2fc1fa808fbfeb6880..baf739924cf06f002570e196f60de46a9f637387 100644 (file)
@@ -69,6 +69,10 @@ int avfilter_graph_add_filter(AVFilterGraph *graph, AVFilterContext *filter)
     graph->filters = filters;
     graph->filters[graph->nb_filters++] = filter;
 
+#if FF_API_FOO_COUNT
+    graph->filter_count = graph->nb_filters;
+#endif
+
     return 0;
 }