[FFmpeg-devel] [PATCH 2/3] lavfi/buffersrc: disable deprecated warnings.

Nicolas George nicolas.george at normalesup.org
Sat Mar 16 18:01:35 CET 2013


Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
 libavfilter/buffersrc.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c
index f72e908..b0c2793 100644
--- a/libavfilter/buffersrc.c
+++ b/libavfilter/buffersrc.c
@@ -169,13 +169,17 @@ static int av_buffersrc_add_frame_internal(AVFilterContext *ctx,
 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,
@@ -203,8 +207,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 {                                                                    \
-- 
1.7.10.4



More information about the ffmpeg-devel mailing list