[FFmpeg-cvslog] avfilter/buffer: Suppress deprecation warning for avfilter_unref_buffer

Diego Biurrun git at videolan.org
Tue Nov 5 12:25:20 CET 2013


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Mon Nov  4 12:53:07 2013 +0100| [7d1a68e95baf232e1c3ee93ee3285f4b309d77ce] | committer: Diego Biurrun

avfilter/buffer: Suppress deprecation warning for avfilter_unref_buffer

The function is used in a block of code that is deprecated anyway.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7d1a68e95baf232e1c3ee93ee3285f4b309d77ce
---

 libavfilter/buffer.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavfilter/buffer.c b/libavfilter/buffer.c
index 88b5f22..fd0b18f 100644
--- a/libavfilter/buffer.c
+++ b/libavfilter/buffer.c
@@ -18,6 +18,7 @@
 
 #include "libavutil/channel_layout.h"
 #include "libavutil/common.h"
+#include "libavutil/internal.h"
 #include "libavcodec/avcodec.h"
 
 #include "avfilter.h"
@@ -89,7 +90,9 @@ void avfilter_unref_buffer(AVFilterBufferRef *ref)
 
 void avfilter_unref_bufferp(AVFilterBufferRef **ref)
 {
+FF_DISABLE_DEPRECATION_WARNINGS
     avfilter_unref_buffer(*ref);
+FF_ENABLE_DEPRECATION_WARNINGS
     *ref = NULL;
 }
 



More information about the ffmpeg-cvslog mailing list