[FFmpeg-cvslog] r25486 - trunk/libavformat/avformat.h
aurel
subversion
Fri Oct 15 15:39:15 CEST 2010
Author: aurel
Date: Fri Oct 15 15:39:15 2010
New Revision: 25486
Log:
add FF_API_READ_SEEK define to drop usage of AVInputFormat.read_seek
and delay this transition to v54 as it is currently not functional
Modified:
trunk/libavformat/avformat.h
Modified: trunk/libavformat/avformat.h
==============================================================================
--- trunk/libavformat/avformat.h Fri Oct 15 15:33:23 2010 (r25485)
+++ trunk/libavformat/avformat.h Fri Oct 15 15:39:15 2010 (r25486)
@@ -69,6 +69,9 @@
#ifndef FF_API_PARSE_FRAME_PARAM
#define FF_API_PARSE_FRAME_PARAM (LIBAVFORMAT_VERSION_MAJOR < 53)
#endif
+#ifndef FF_API_READ_SEEK
+#define FF_API_READ_SEEK (LIBAVFORMAT_VERSION_MAJOR < 54)
+#endif
/**
* I return the LIBAVFORMAT_VERSION_INT constant. You got
@@ -392,7 +395,7 @@ typedef struct AVInputFormat {
*/
int (*read_close)(struct AVFormatContext *);
-#if LIBAVFORMAT_VERSION_MAJOR < 53
+#if FF_API_READ_SEEK
/**
* Seek to a given timestamp relative to the frames in
* stream component stream_index.
More information about the ffmpeg-cvslog
mailing list