[FFmpeg-cvslog] lsws: define version in SWScaler class

Stefano Sabatini git at videolan.org
Thu Nov 29 10:23:19 CET 2012


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Thu Nov 29 00:27:25 2012 +0100| [605f1d9865d46f3db5b56b7cac343a3f33637950] | committer: Stefano Sabatini

lsws: define version in SWScaler class

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.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=605f1d9865d46f3db5b56b7cac343a3f33637950
---

 libswscale/options.c |    1 +
 libswscale/version.h |    2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/libswscale/options.c b/libswscale/options.c
index 9cd4fc0..f7d261c 100644
--- a/libswscale/options.c
+++ b/libswscale/options.c
@@ -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)
diff --git a/libswscale/version.h b/libswscale/version.h
index 0603b10..49e280d 100644
--- a/libswscale/version.h
+++ b/libswscale/version.h
@@ -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, \



More information about the ffmpeg-cvslog mailing list