[FFmpeg-devel] [PATCH] lavf: deprecate AVFormatContext.index_built
Anton Khirnov
anton
Thu Feb 10 09:36:44 CET 2011
it's not touched anywhere in ffmpeg, the code setting it was removed
over two years ago (e9b78eeba22b050810a507e69df1b652e56ab62b).
---
libavformat/avformat.h | 4 +++-
libavformat/version.h | 3 +++
2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index bf6f96d..73ac85f 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -750,7 +750,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;
diff --git a/libavformat/version.h b/libavformat/version.h
index e1abaa7..02c151b 100644
--- a/libavformat/version.h
+++ b/libavformat/version.h
@@ -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
--
1.7.2.3
More information about the ffmpeg-devel
mailing list