OSDN Git Service

lavf: deprecate AVFormatContext.index_built
authorAnton Khirnov <anton@khirnov.net>
Thu, 10 Feb 2011 08:36:44 +0000 (09:36 +0100)
committerRonald S. Bultje <rsbultje@gmail.com>
Fri, 11 Feb 2011 02:34:29 +0000 (21:34 -0500)
it's not touched anywhere in ffmpeg, the code setting it was removed
over two years ago (e9b78eeba22b050810a507e69df1b652e56ab62b).

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
libavformat/avformat.h
libavformat/version.h

index f676dc2..11a4541 100644 (file)
@@ -752,7 +752,9 @@ typedef struct AVFormatContext {
 
     /* av_seek_frame() support */
     int64_t data_offset; /**< offset of the first packet */
-    int index_built;
+#if FF_API_INDEX_BUILT
+    attribute_deprecated int index_built;
+#endif
 
     int mux_rate;
     unsigned int packet_size;
index 0c796e6..d1a643a 100644 (file)
@@ -89,5 +89,8 @@
 #ifndef FF_API_OLD_AVIO
 #define FF_API_OLD_AVIO                (LIBAVFORMAT_VERSION_MAJOR < 53)
 #endif
+#ifndef FF_API_INDEX_BUILT
+#define FF_API_INDEX_BUILT             (LIBAVFORMAT_VERSION_MAJOR < 53)
+#endif
 
 #endif //AVFORMAT_VERSION_H