changeset 3054:6892d95d4e03 libavformat

Clean up lib* version definitions Updating version numbers now requires changing only one place.
author mru
date Tue, 19 Feb 2008 22:50:28 +0000
parents b2288cba3795
children ed3653834ada
files avformat.h
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/avformat.h	Tue Feb 19 22:09:08 2008 +0000
+++ b/avformat.h	Tue Feb 19 22:50:28 2008 +0000
@@ -21,8 +21,10 @@
 #ifndef FFMPEG_AVFORMAT_H
 #define FFMPEG_AVFORMAT_H
 
-#define LIBAVFORMAT_VERSION_INT ((52<<16)+(7<<8)+0)
-#define LIBAVFORMAT_VERSION     52.7.0
+#define LIBAVFORMAT_VERSION_TRIPLET 52,7,0
+
+#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_TRIPLET)
+#define LIBAVFORMAT_VERSION     AV_VERSION(LIBAVFORMAT_VERSION_TRIPLET)
 #define LIBAVFORMAT_BUILD       LIBAVFORMAT_VERSION_INT
 
 #define LIBAVFORMAT_IDENT       "Lavf" AV_STRINGIFY(LIBAVFORMAT_VERSION)