lsws: define version in SWScaler class
authorStefano Sabatini <stefasab@gmail.com>
Wed, 28 Nov 2012 23:27:25 +0000 (00:27 +0100)
committerStefano Sabatini <stefasab@gmail.com>
Thu, 29 Nov 2012 09:20:21 +0000 (10:20 +0100)
The version number is useful to check the libavutil version against which
the library was compiled at run-time, which in turn may be useful to deal
with binary compatibility issues.

libswscale/options.c
libswscale/version.h

index 9cd4fc0..f7d261c 100644 (file)
@@ -71,6 +71,7 @@ const AVClass sws_context_class = {
     .item_name  = sws_context_to_name,
     .option     = options,
     .category   = AV_CLASS_CATEGORY_SWSCALER,
+    .version    = LIBAVUTIL_VERSION_INT,
 };
 
 const AVClass *sws_get_class(void)
index 0603b10..49e280d 100644 (file)
@@ -28,7 +28,7 @@
 
 #define LIBSWSCALE_VERSION_MAJOR 2
 #define LIBSWSCALE_VERSION_MINOR 1
-#define LIBSWSCALE_VERSION_MICRO 102
+#define LIBSWSCALE_VERSION_MICRO 103
 
 #define LIBSWSCALE_VERSION_INT  AV_VERSION_INT(LIBSWSCALE_VERSION_MAJOR, \
                                                LIBSWSCALE_VERSION_MINOR, \