diff --git a/libavformat/avformat.h b/libavformat/avformat.h index f676dc214b..11a45418ef 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -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; 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