summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2014-09-14 21:28:09 -0300
committerJames Almer <jamrial@gmail.com>2014-10-05 17:10:26 -0300
commitddc376816161bdb24caa0a6698f8a18b41c6f70a (patch)
tree543496d30e529cac2fa6aea1a9ebe6be59a1e7a4
parentecf457f3ac49e93f06edfe301db4bc2fdedca1ae (diff)
downloadffmpeg-streaming-ddc376816161bdb24caa0a6698f8a18b41c6f70a.zip
ffmpeg-streaming-ddc376816161bdb24caa0a6698f8a18b41c6f70a.tar.gz
avformat: remove obsolete FF_API_READ_PACKET cruft
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavformat/avformat.h18
-rw-r--r--libavformat/utils.c7
-rw-r--r--libavformat/version.h3
3 files changed, 0 insertions, 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
OpenPOWER on IntegriCloud