diff --git a/libavfilter/buffer.c b/libavfilter/buffer.c index 1bbfab8024..a62618440b 100644 --- a/libavfilter/buffer.c +++ b/libavfilter/buffer.c @@ -24,6 +24,7 @@ #include "libavutil/avassert.h" #include "libavutil/common.h" #include "libavutil/imgutils.h" +#include "libavutil/internal.h" #include "libavcodec/avcodec.h" #include "avfilter.h" @@ -113,7 +114,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; }