diff options
author | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2015-08-08 10:41:33 +0200 |
---|---|---|
committer | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2015-08-22 19:16:14 +0200 |
commit | 095347ffe4c73143dbeb7b05cde8891fd1289389 (patch) | |
tree | 7f3f71dd67f7f973990281a26e7beebe59f20829 /libavfilter | |
parent | 805f38b4d618811e2f09625c87f42a1d3fd492d2 (diff) | |
download | ffmpeg-095347ffe4c73143dbeb7b05cde8891fd1289389.tar.gz |
disable deprecation warnings in deprecated code
Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/audio.c | 2 | ||||
-rw-r--r-- | libavfilter/avcodec.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/libavfilter/audio.c b/libavfilter/audio.c index 1e1d8e04df..a49bcf4f20 100644 --- a/libavfilter/audio.c +++ b/libavfilter/audio.c @@ -81,6 +81,7 @@ AVFrame *ff_get_audio_buffer(AVFilterLink *link, int nb_samples) } #if FF_API_AVFILTERBUFFER +FF_DISABLE_DEPRECATION_WARNINGS AVFilterBufferRef* avfilter_get_audio_buffer_ref_from_arrays_channels(uint8_t **data, int linesize,int perms, int nb_samples, @@ -167,4 +168,5 @@ AVFilterBufferRef* avfilter_get_audio_buffer_ref_from_arrays(uint8_t **data, nb_samples, sample_fmt, channels, channel_layout); } +FF_ENABLE_DEPRECATION_WARNINGS #endif diff --git a/libavfilter/avcodec.c b/libavfilter/avcodec.c index def735f84d..bf7d8e1596 100644 --- a/libavfilter/avcodec.c +++ b/libavfilter/avcodec.c @@ -29,6 +29,7 @@ #include "libavutil/opt.h" #if FF_API_AVFILTERBUFFER +FF_DISABLE_DEPRECATION_WARNINGS AVFilterBufferRef *avfilter_get_video_buffer_ref_from_frame(const AVFrame *frame, int perms) { @@ -134,4 +135,5 @@ int avfilter_copy_buf_props(AVFrame *dst, const AVFilterBufferRef *src) return 0; } +FF_ENABLE_DEPRECATION_WARNINGS #endif |