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:
Aurelien Jacobs
2010-08-17 20:23:19 +00:00
parent 072e3efd1b
commit dd872bf49f
6 changed files with 21 additions and 16 deletions

View File

@@ -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 */