mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-24 03:39:45 +00:00
avfilter/buffer: Suppress deprecation warning for avfilter_unref_buffer
The function is used in a block of code that is deprecated anyway.
This commit is contained in:
parent
82c86d0b18
commit
7d1a68e95b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user