aboutsummaryrefslogtreecommitdiff
path: root/libavdevice/lavfi.c
diff options
context:
space:
mode:
authorStefano Sabatini2013-07-02 01:39:14 +0200
committerStefano Sabatini2013-07-03 13:21:42 +0200
commit838bd731393a29a41a86ff15ccf972f967306319 (patch)
treedc3861a36f6338bab0531b00aea8adfbcd77a2c4 /libavdevice/lavfi.c
parent5efbeae38cdcf8ed099be06f59fb422b5004e163 (diff)
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.
Diffstat (limited to 'libavdevice/lavfi.c')
-rw-r--r--libavdevice/lavfi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/lavfi.c b/libavdevice/lavfi.c
index bcfba8b4a6..9322ce5961 100644
--- a/libavdevice/lavfi.c
+++ b/libavdevice/lavfi.c
@@ -141,7 +141,7 @@ av_cold static int lavfi_read_header(AVFormatContext *avctx)
if (!(lavfi->graph = avfilter_graph_alloc()))
FAIL(AVERROR(ENOMEM));
- if ((ret = avfilter_graph_parse(lavfi->graph, lavfi->graph_str,
+ if ((ret = avfilter_graph_parse_ptr(lavfi->graph, lavfi->graph_str,
&input_links, &output_links, avctx)) < 0)
FAIL(ret);