summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-02-10 09:36:44 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-02-13 00:52:50 +0100
commitb845252d52e46d39e62a9b2e43103953b4546549 (patch)
tree2a9358710c0c5e994a9491265411ef7b404a46a3 /libavformat
parent4f036b9f6998e62f468ff2db7b48684492f43033 (diff)
lavf: deprecate AVFormatContext.index_built
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> (cherry picked from commit b0294c80d3a3981ec7ef9e4654962780e8566075)
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/avformat.h4
-rw-r--r--libavformat/version.h3
2 files changed, 6 insertions, 1 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index e65ff89699..ff72361e1b 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -754,7 +754,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 0c796e6de5..d1a643aaac 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