diff options
author | Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> | 2015-12-04 14:07:23 -0800 |
---|---|---|
committer | Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> | 2015-12-06 01:01:51 -0800 |
commit | 21c34cb26154a5eadd6e10df86c20e2df3a7bd55 (patch) | |
tree | b63cb430fa6a70c1249ddc3bab6a670db1c74301 /libavutil | |
parent | fcd9c6334a88284999afd091f813865f530b7abb (diff) | |
download | ffmpeg-21c34cb26154a5eadd6e10df86c20e2df3a7bd55.tar.gz |
libavutil: add version component accessor macros
Pretty standard macros, these should help libav*
users avoid repeating ver.si.on parsing code,
which aids in compatibility-checking tasks like
identifying FFmpeg from Libav (_MICRO >= 100 check).
Something many are doing since we are not
intercompatible anymore.
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/version.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libavutil/version.h b/libavutil/version.h index bf0a9299db..e7f04888de 100644 --- a/libavutil/version.h +++ b/libavutil/version.h @@ -37,6 +37,14 @@ #define AV_VERSION(a, b, c) AV_VERSION_DOT(a, b, c) /** + * Extract version components from the full ::AV_VERSION_INT int as returned + * by functions like ::avformat_version() and ::avcodec_version() + */ +#define AV_VERSION_MAJOR(a) ((a) >> 16) +#define AV_VERSION_MINOR(a) (((a) & 0x00FF00) >> 8) +#define AV_VERSION_MICRO(a) ((a) & 0xFF) + +/** * @} */ @@ -56,7 +64,7 @@ */ #define LIBAVUTIL_VERSION_MAJOR 55 -#define LIBAVUTIL_VERSION_MINOR 9 +#define LIBAVUTIL_VERSION_MINOR 10 #define LIBAVUTIL_VERSION_MICRO 100 #define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \ |