diff metadata_compat.c @ 6384:2d51ca7714c3 libavformat

add LAVF_API_OLD_METADATA define to disable the deprecated metadata API
author aurel
date Tue, 17 Aug 2010 20:23:19 +0000
parents 8515b7b4fe87
children 4974b3d4992b
line wrap: on
line diff
--- a/metadata_compat.c	Tue Aug 17 19:30:21 2010 +0000
+++ b/metadata_compat.c	Tue Aug 17 20:23:19 2010 +0000
@@ -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 @@
     }
 }
 
-#endif /* LIBAVFORMAT_VERSION_MAJOR < 53 */
+#endif /* LAVF_API_OLD_METADATA */