[FFmpeg-cvslog] avformat: remove obsolete FF_API_READ_PACKET cruft
James Almer
git at videolan.org
Sun Oct 5 22:19:09 CEST 2014
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sun Sep 14 21:28:09 2014 -0300| [ddc376816161bdb24caa0a6698f8a18b41c6f70a] | committer: James Almer
avformat: remove obsolete FF_API_READ_PACKET cruft
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ddc376816161bdb24caa0a6698f8a18b41c6f70a
---
libavformat/avformat.h | 18 ------------------
libavformat/utils.c | 7 -------
libavformat/version.h | 3 ---
3 files changed, 28 deletions(-)
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index 56c1399..f189741 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -2052,24 +2052,6 @@ int av_find_best_stream(AVFormatContext *ic,
AVCodec **decoder_ret,
int flags);
-#if FF_API_READ_PACKET
-/**
- * @deprecated use AVFMT_FLAG_NOFILLIN | AVFMT_FLAG_NOPARSE to read raw
- * unprocessed packets
- *
- * Read a transport packet from a media file.
- *
- * This function is obsolete and should never be used.
- * Use av_read_frame() instead.
- *
- * @param s media file handle
- * @param pkt is filled
- * @return 0 if OK, AVERROR_xxx on error
- */
-attribute_deprecated
-int av_read_packet(AVFormatContext *s, AVPacket *pkt);
-#endif
-
/**
* Return the next frame of a stream.
* This function returns what is stored in the file, and does not validate
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 0008073..d71fae4 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -691,13 +691,6 @@ int ff_read_packet(AVFormatContext *s, AVPacket *pkt)
}
}
-#if FF_API_READ_PACKET
-int av_read_packet(AVFormatContext *s, AVPacket *pkt)
-{
- return ff_read_packet(s, pkt);
-}
-#endif
-
/**********************************************************/
diff --git a/libavformat/version.h b/libavformat/version.h
index a9b6cb6..486979f 100644
--- a/libavformat/version.h
+++ b/libavformat/version.h
@@ -61,9 +61,6 @@
#define FF_API_URL_FEOF (LIBAVFORMAT_VERSION_MAJOR < 57)
#endif
-#ifndef FF_API_READ_PACKET
-#define FF_API_READ_PACKET (LIBAVFORMAT_VERSION_MAJOR < 56)
-#endif
#ifndef FF_API_R_FRAME_RATE
#define FF_API_R_FRAME_RATE 1
#endif
More information about the ffmpeg-cvslog
mailing list