Browse Source

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

Originally committed as revision 25486 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/n0.8
Aurelien Jacobs 15 years ago
parent
commit
634e0304a8
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      libavformat/avformat.h

+ 4
- 1
libavformat/avformat.h View File

@@ -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.


Loading…
Cancel
Save