changeset 6378:99823c80a93d libavcodec

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 931ca319f2fe
children 9f4f88218b78
files avcodec.h
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/avcodec.h	Tue Feb 19 22:09:08 2008 +0000
+++ b/avcodec.h	Tue Feb 19 22:50:28 2008 +0000
@@ -30,8 +30,10 @@
 #include "avutil.h"
 #include <sys/types.h> /* size_t */
 
-#define LIBAVCODEC_VERSION_INT  ((51<<16)+(50<<8)+1)
-#define LIBAVCODEC_VERSION      51.50.1
+#define LIBAVCODEC_VERSION_TRIPLET 51,50,1
+
+#define LIBAVCODEC_VERSION_INT  AV_VERSION_INT(LIBAVCODEC_VERSION_TRIPLET)
+#define LIBAVCODEC_VERSION      AV_VERSION(LIBAVCODEC_VERSION_TRIPLET)
 #define LIBAVCODEC_BUILD        LIBAVCODEC_VERSION_INT
 
 #define LIBAVCODEC_IDENT        "Lavc" AV_STRINGIFY(LIBAVCODEC_VERSION)