swr: fix swresample_version()
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 23 Dec 2011 22:26:02 +0000 (23:26 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 23 Dec 2011 22:26:02 +0000 (23:26 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libswresample/swresample.c
libswresample/swresample.h

index 107ce16..84d0f40 100644 (file)
@@ -73,7 +73,7 @@ static const AVClass av_class = {
 unsigned swresample_version(void)
 {
     av_assert0(LIBSWRESAMPLE_VERSION_MICRO >= 100);
-    return LIBSWRESAMPLE_VERSION_MICRO;
+    return LIBSWRESAMPLE_VERSION_INT;
 }
 
 const char *swresample_configuration(void)
index fa85e24..5b9eed9 100644 (file)
 #define LIBSWRESAMPLE_VERSION_MINOR 5
 #define LIBSWRESAMPLE_VERSION_MICRO 100
 
+#define LIBSWRESAMPLE_VERSION_INT  AV_VERSION_INT(LIBSWRESAMPLE_VERSION_MAJOR, \
+                                                  LIBSWRESAMPLE_VERSION_MINOR, \
+                                                  LIBSWRESAMPLE_VERSION_MICRO)
+
 #define SWR_CH_MAX 16   ///< Maximum number of channels
 
 #define SWR_FLAG_RESAMPLE 1 ///< Force resampling even if equal sample rate