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