From a5149607df825b65f1ea7bbbbff74e24bd07230e Mon Sep 17 00:00:00 2001 From: Nicolas George Date: Sat, 16 Mar 2013 17:46:55 +0100 Subject: [PATCH] lavfi/buffersrc: disable deprecated warnings. --- libavfilter/buffersrc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c index 3887d05e73..99bcfae34b 100644 --- a/libavfilter/buffersrc.c +++ b/libavfilter/buffersrc.c @@ -172,13 +172,17 @@ static int attribute_align_arg av_buffersrc_add_frame_internal(AVFilterContext * static void compat_free_buffer(void *opaque, uint8_t *data) { AVFilterBufferRef *buf = opaque; + AV_NOWARN_DEPRECATED( avfilter_unref_buffer(buf); + ) } static void compat_unref_buffer(void *opaque, uint8_t *data) { AVBufferRef *buf = opaque; + AV_NOWARN_DEPRECATED( av_buffer_unref(&buf); + ) } int av_buffersrc_add_ref(AVFilterContext *ctx, AVFilterBufferRef *buf, @@ -206,8 +210,10 @@ int av_buffersrc_add_ref(AVFilterContext *ctx, AVFilterBufferRef *buf, goto fail; } + AV_NOWARN_DEPRECATED( if ((ret = avfilter_copy_buf_props(frame, buf)) < 0) goto fail; + ) #define WRAP_PLANE(ref_out, data, data_size) \ do { \