Browse Source

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.
tags/n1.1
Stefano Sabatini 13 years ago
parent
commit
605f1d9865
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      libswscale/options.c
  2. +1
    -1
      libswscale/version.h

+ 1
- 0
libswscale/options.c View 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)


+ 1
- 1
libswscale/version.h View 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, \


Loading…
Cancel
Save