[FFmpeg-devel] [PATCH 01/14] lavf: deprecate av_apply_bitstream_filters

Rodger Combs rodger.combs at gmail.com
Sun Jun 12 22:34:06 CEST 2016


---
 libavformat/avformat.h | 3 +++
 libavformat/utils.c    | 4 ++++
 2 files changed, 7 insertions(+)

diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index f66c39b..b4fe626 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -2869,8 +2869,11 @@ int avformat_queue_attached_pictures(AVFormatContext *s);
  * @return  >=0 on success;
  *          AVERROR code on failure
  */
+#if FF_API_OLD_BSF
+attribute_deprecated
 int av_apply_bitstream_filters(AVCodecContext *codec, AVPacket *pkt,
                                AVBitStreamFilterContext *bsfc);
+#endif
 
 /**
  * @}
diff --git a/libavformat/utils.c b/libavformat/utils.c
index cb8d910..268e490 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -5004,6 +5004,8 @@ int ff_stream_add_bitstream_filter(AVStream *st, const char *name, const char *a
     return 1;
 }
 
+#if FF_API_OLD_BSF
+FF_DISABLE_DEPRECATION_WARNINGS
 int av_apply_bitstream_filters(AVCodecContext *codec, AVPacket *pkt,
                                AVBitStreamFilterContext *bsfc)
 {
@@ -5057,6 +5059,8 @@ int av_apply_bitstream_filters(AVCodecContext *codec, AVPacket *pkt,
     }
     return ret;
 }
+FF_ENABLE_DEPRECATION_WARNINGS
+#endif
 
 void ff_format_io_close(AVFormatContext *s, AVIOContext **pb)
 {
-- 
2.8.3



More information about the ffmpeg-devel mailing list