summaryrefslogtreecommitdiff
path: root/libavfilter/avfiltergraph.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-03-30 22:15:48 +0100
committerAnton Khirnov <anton@khirnov.net>2013-04-04 07:52:32 +0200
commit6d0546bbaf16a9652d00785b96e60dff9c206087 (patch)
tree69ef20f4ca0f5e5ad6467a5aedf8db1c640bdf32 /libavfilter/avfiltergraph.c
parentbcc94328980e6c56546792ab08b0756abdce310b (diff)
avfiltergraph: set deprecated filter_count.
Diffstat (limited to 'libavfilter/avfiltergraph.c')
-rw-r--r--libavfilter/avfiltergraph.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c
index 06b6a101de..baf739924c 100644
--- a/libavfilter/avfiltergraph.c
+++ b/libavfilter/avfiltergraph.c
@@ -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;
}