diff options
author | Diego Biurrun <diego@biurrun.de> | 2013-11-04 12:53:07 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2013-11-04 23:04:10 +0100 |
commit | 7d1a68e95baf232e1c3ee93ee3285f4b309d77ce (patch) | |
tree | 31e3582293899cb447f7cf2a6c1b84b1df96e9ab | |
parent | 82c86d0b1839b01b3cd0dd848fb6416ff21506dd (diff) | |
download | ffmpeg-7d1a68e95baf232e1c3ee93ee3285f4b309d77ce.tar.gz |
avfilter/buffer: Suppress deprecation warning for avfilter_unref_buffer
The function is used in a block of code that is deprecated anyway.
-rw-r--r-- | libavfilter/buffer.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavfilter/buffer.c b/libavfilter/buffer.c index 88b5f22523..fd0b18fb76 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; } |