[FFmpeg-cvslog] lavc: remove the FF_API_SUBTITLE_OLD cruft.
Anton Khirnov
git at videolan.org
Wed Apr 20 04:52:18 CEST 2011
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Thu Feb 3 14:50:06 2011 +0100| [db4d3a7421ec70de0d5ccd8a9f99b46b5c780d23] | committer: Anton Khirnov
lavc: remove the FF_API_SUBTITLE_OLD cruft.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=db4d3a7421ec70de0d5ccd8a9f99b46b5c780d23
---
libavcodec/avcodec.h | 9 ---------
libavcodec/utils.c | 14 --------------
libavcodec/version.h | 3 ---
3 files changed, 0 insertions(+), 26 deletions(-)
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 78dd208..c47b006 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -3785,15 +3785,6 @@ int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture,
int *got_picture_ptr,
AVPacket *avpkt);
-#if FF_API_SUBTITLE_OLD
-/* Decode a subtitle message. Return -1 if error, otherwise return the
- * number of bytes used. If no subtitle could be decompressed,
- * got_sub_ptr is zero. Otherwise, the subtitle is stored in *sub. */
-attribute_deprecated int avcodec_decode_subtitle(AVCodecContext *avctx, AVSubtitle *sub,
- int *got_sub_ptr,
- const uint8_t *buf, int buf_size);
-#endif
-
/**
* Decode a subtitle message.
* Return a negative value on error, otherwise return the number of bytes used.
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 89bd4a1..aa2e556 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -692,20 +692,6 @@ int attribute_align_arg avcodec_decode_audio3(AVCodecContext *avctx, int16_t *sa
return ret;
}
-#if FF_API_SUBTITLE_OLD
-int avcodec_decode_subtitle(AVCodecContext *avctx, AVSubtitle *sub,
- int *got_sub_ptr,
- const uint8_t *buf, int buf_size)
-{
- AVPacket avpkt;
- av_init_packet(&avpkt);
- avpkt.data = buf;
- avpkt.size = buf_size;
-
- return avcodec_decode_subtitle2(avctx, sub, got_sub_ptr, &avpkt);
-}
-#endif
-
int avcodec_decode_subtitle2(AVCodecContext *avctx, AVSubtitle *sub,
int *got_sub_ptr,
AVPacket *avpkt)
diff --git a/libavcodec/version.h b/libavcodec/version.h
index 2d460b9..d3dd04f 100644
--- a/libavcodec/version.h
+++ b/libavcodec/version.h
@@ -41,9 +41,6 @@
#ifndef FF_API_PALETTE_CONTROL
#define FF_API_PALETTE_CONTROL (LIBAVCODEC_VERSION_MAJOR < 54)
#endif
-#ifndef FF_API_SUBTITLE_OLD
-#define FF_API_SUBTITLE_OLD (LIBAVCODEC_VERSION_MAJOR < 53)
-#endif
#ifndef FF_API_USE_LPC
#define FF_API_USE_LPC (LIBAVCODEC_VERSION_MAJOR < 53)
#endif
More information about the ffmpeg-cvslog
mailing list