The function is used in a block of code that is deprecated anyway.
Showing the changes to libavfilter/buffer.c (1 of 1 file). Show all
Unified · Split
| @@ -18,6 +18,7 @@ · 17 unmodified lines | ||
| 18 | 18 | |
| 19 | 19 | #include "libavutil/channel_layout.h" |
| 20 | 20 | #include "libavutil/common.h" |
| 21 | +#include "libavutil/internal.h" | |
| 21 | 22 | #include "libavcodec/avcodec.h" |
| 22 | 23 | |
| 23 | 24 | #include "avfilter.h" |
| @@ -89,7 +90,9 @@ void avfilter_unref_buffer(AVFilterBufferRef *ref) · 65 unmodified lines | ||
| 89 | 90 | |
| 90 | 91 | void avfilter_unref_bufferp(AVFilterBufferRef **ref) |
| 91 | 92 | { |
| 93 | +FF_DISABLE_DEPRECATION_WARNINGS | |
| 92 | 94 | avfilter_unref_buffer(*ref); |
| 95 | +FF_ENABLE_DEPRECATION_WARNINGS | |
| 93 | 96 | *ref = NULL; |
| 94 | 97 | } |
| 95 | 98 | |