add LAVF_API_OLD_METADATA define to disable the deprecated metadata API
Originally committed as revision 24818 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
#include "metadata.h"
|
||||
#include "libavutil/avstring.h"
|
||||
|
||||
#if LIBAVFORMAT_VERSION_MAJOR < 53
|
||||
#if LAVF_API_OLD_METADATA
|
||||
|
||||
#define SIZE_OFFSET(x) sizeof(((AVFormatContext*)0)->x),offsetof(AVFormatContext,x)
|
||||
|
||||
@@ -145,4 +145,4 @@ void ff_metadata_mux_compat(AVFormatContext *ctx)
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* LIBAVFORMAT_VERSION_MAJOR < 53 */
|
||||
#endif /* LAVF_API_OLD_METADATA */
|
||||
|
||||
Reference in New Issue
Block a user