From 838bd731393a29a41a86ff15ccf972f967306319 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Tue, 2 Jul 2013 01:39:14 +0200 Subject: lavfi: create Libav-API compatibility layer for avfilter_graph_parse() at the next bump Add function avfilter_graph_parse_ptr() and favor it in place of avfilter_graph_parse(), which will be restored with the old/Libav signature at the next bump. If HAVE_INCOMPATIBLE_LIBAV_API is enabled it will use the Libav-compatible signature for avfilter_graph_parse(). At the next major bump the current implementation of avfilter_graph_parse() should be dropped in favor of the Libav/old implementation. Should address trac ticket #2672. --- doc/APIchanges | 4 ++++ doc/examples/filtering_audio.c | 2 +- doc/examples/filtering_video.c | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/APIchanges b/doc/APIchanges index 2c0eae8d81..aac9d8c0aa 100644 --- a/doc/APIchanges +++ b/doc/APIchanges @@ -15,6 +15,10 @@ libavutil: 2012-10-22 API changes, most recent first: +2013-07-03 - xxxxxxx - lavfi 3.78.100 - avfilter.h + Deprecate avfilter_graph_parse() in favor of the equivalent + avfilter_graph_parse_ptr(). + 2013-06-xx - xxxxxxx - lavc 55.10.0 - avcodec.h Add MPEG-2 AAC profiles diff --git a/doc/examples/filtering_audio.c b/doc/examples/filtering_audio.c index b6b05a209d..72cf7902e2 100644 --- a/doc/examples/filtering_audio.c +++ b/doc/examples/filtering_audio.c @@ -152,7 +152,7 @@ static int init_filters(const char *filters_descr) inputs->pad_idx = 0; inputs->next = NULL; - if ((ret = avfilter_graph_parse(filter_graph, filters_descr, + if ((ret = avfilter_graph_parse_ptr(filter_graph, filters_descr, &inputs, &outputs, NULL)) < 0) return ret; diff --git a/doc/examples/filtering_video.c b/doc/examples/filtering_video.c index daa39666fe..d3c33df040 100644 --- a/doc/examples/filtering_video.c +++ b/doc/examples/filtering_video.c @@ -129,7 +129,7 @@ static int init_filters(const char *filters_descr) inputs->pad_idx = 0; inputs->next = NULL; - if ((ret = avfilter_graph_parse(filter_graph, filters_descr, + if ((ret = avfilter_graph_parse_ptr(filter_graph, filters_descr, &inputs, &outputs, NULL)) < 0) return ret; -- cgit v1.2.3