summaryrefslogtreecommitdiff
path: root/libavfilter/avfiltergraph.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-03-31 08:31:40 +0200
committerAnton Khirnov <anton@khirnov.net>2013-04-11 20:36:42 +0200
commitc2c9801bc9bce688d51d1a96f5f3ea93933e2dee (patch)
tree262c33c4501251bf5408995692c7d438132872f4 /libavfilter/avfiltergraph.c
parentbc1a985ba030e9861d24965d42792850b43a43ea (diff)
lavfi: deprecate avfilter_graph_add_filter().
Since this function adds a standalone filter to a filter graph and we do not support creating such filters, there is no reason for this function to exist.
Diffstat (limited to 'libavfilter/avfiltergraph.c')
-rw-r--r--libavfilter/avfiltergraph.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c
index c35d0ea18d..828b462550 100644
--- a/libavfilter/avfiltergraph.c
+++ b/libavfilter/avfiltergraph.c
@@ -58,6 +58,7 @@ void avfilter_graph_free(AVFilterGraph **graph)
av_freep(graph);
}
+#if FF_API_AVFILTER_OPEN
int avfilter_graph_add_filter(AVFilterGraph *graph, AVFilterContext *filter)
{
AVFilterContext **filters = av_realloc(graph->filters,
@@ -74,6 +75,7 @@ int avfilter_graph_add_filter(AVFilterGraph *graph, AVFilterContext *filter)
return 0;
}
+#endif
int avfilter_graph_create_filter(AVFilterContext **filt_ctx, AVFilter *filt,
const char *name, const char *args, void *opaque,