You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
Clean up lib* version definitions
Updating version numbers now requires changing only one place. Originally committed as revision 12154 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
2
configure
vendored
2
configure
vendored
@@ -2005,7 +2005,7 @@ fi
|
|||||||
get_version(){
|
get_version(){
|
||||||
name=$1
|
name=$1
|
||||||
file=$source_path/$2
|
file=$source_path/$2
|
||||||
grep "#define ${name}_VERSION " "$file" | sed 's/[^0-9\.]//g'
|
grep "#define ${name}_VERSION_TRIPLET " "$file" | sed 's/[^0-9,]//g' | tr , .
|
||||||
}
|
}
|
||||||
|
|
||||||
sws_version=$(get_version LIBSWSCALE libswscale/swscale.h)
|
sws_version=$(get_version LIBSWSCALE libswscale/swscale.h)
|
||||||
|
@@ -30,8 +30,10 @@
|
|||||||
#include "avutil.h"
|
#include "avutil.h"
|
||||||
#include <sys/types.h> /* size_t */
|
#include <sys/types.h> /* size_t */
|
||||||
|
|
||||||
#define LIBAVCODEC_VERSION_INT ((51<<16)+(50<<8)+1)
|
#define LIBAVCODEC_VERSION_TRIPLET 51,50,1
|
||||||
#define LIBAVCODEC_VERSION 51.50.1
|
|
||||||
|
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_TRIPLET)
|
||||||
|
#define LIBAVCODEC_VERSION AV_VERSION(LIBAVCODEC_VERSION_TRIPLET)
|
||||||
#define LIBAVCODEC_BUILD LIBAVCODEC_VERSION_INT
|
#define LIBAVCODEC_BUILD LIBAVCODEC_VERSION_INT
|
||||||
|
|
||||||
#define LIBAVCODEC_IDENT "Lavc" AV_STRINGIFY(LIBAVCODEC_VERSION)
|
#define LIBAVCODEC_IDENT "Lavc" AV_STRINGIFY(LIBAVCODEC_VERSION)
|
||||||
|
@@ -19,8 +19,10 @@
|
|||||||
#ifndef FFMPEG_AVDEVICE_H
|
#ifndef FFMPEG_AVDEVICE_H
|
||||||
#define FFMPEG_AVDEVICE_H
|
#define FFMPEG_AVDEVICE_H
|
||||||
|
|
||||||
#define LIBAVDEVICE_VERSION_INT ((52<<16)+(0<<8)+0)
|
#define LIBAVDEVICE_VERSION_TRIPLET 52,0,0
|
||||||
#define LIBAVDEVICE_VERSION 52.0.0
|
|
||||||
|
#define LIBAVDEVICE_VERSION_INT AV_VERSION_INT(LIBAVDEVICE_VERSION_TRIPLET)
|
||||||
|
#define LIBAVDEVICE_VERSION AV_VERSION(LIBAVDEVICE_VERSION_TRIPLET)
|
||||||
#define LIBAVDEVICE_BUILD LIBAVDEVICE_VERSION_INT
|
#define LIBAVDEVICE_BUILD LIBAVDEVICE_VERSION_INT
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -21,8 +21,10 @@
|
|||||||
#ifndef FFMPEG_AVFORMAT_H
|
#ifndef FFMPEG_AVFORMAT_H
|
||||||
#define FFMPEG_AVFORMAT_H
|
#define FFMPEG_AVFORMAT_H
|
||||||
|
|
||||||
#define LIBAVFORMAT_VERSION_INT ((52<<16)+(7<<8)+0)
|
#define LIBAVFORMAT_VERSION_TRIPLET 52,7,0
|
||||||
#define LIBAVFORMAT_VERSION 52.7.0
|
|
||||||
|
#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_TRIPLET)
|
||||||
|
#define LIBAVFORMAT_VERSION AV_VERSION(LIBAVFORMAT_VERSION_TRIPLET)
|
||||||
#define LIBAVFORMAT_BUILD LIBAVFORMAT_VERSION_INT
|
#define LIBAVFORMAT_BUILD LIBAVFORMAT_VERSION_INT
|
||||||
|
|
||||||
#define LIBAVFORMAT_IDENT "Lavf" AV_STRINGIFY(LIBAVFORMAT_VERSION)
|
#define LIBAVFORMAT_IDENT "Lavf" AV_STRINGIFY(LIBAVFORMAT_VERSION)
|
||||||
|
@@ -30,8 +30,16 @@
|
|||||||
#define AV_STRINGIFY(s) AV_TOSTRING(s)
|
#define AV_STRINGIFY(s) AV_TOSTRING(s)
|
||||||
#define AV_TOSTRING(s) #s
|
#define AV_TOSTRING(s) #s
|
||||||
|
|
||||||
#define LIBAVUTIL_VERSION_INT ((49<<16)+(6<<8)+0)
|
#define AV_VERSION_INT_3(a, b, c) (a<<16 | b<<8 | c)
|
||||||
#define LIBAVUTIL_VERSION 49.6.0
|
#define AV_VERSION_INT(x) AV_VERSION_INT_3(x)
|
||||||
|
|
||||||
|
#define AV_VERSION_3(a, b, c) a ##.## b ##.## c
|
||||||
|
#define AV_VERSION(x) AV_VERSION_3(x)
|
||||||
|
|
||||||
|
#define LIBAVUTIL_VERSION_TRIPLET 49,6,0
|
||||||
|
|
||||||
|
#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_TRIPLET)
|
||||||
|
#define LIBAVUTIL_VERSION AV_VERSION(LIBAVUTIL_VERSION_TRIPLET)
|
||||||
#define LIBAVUTIL_BUILD LIBAVUTIL_VERSION_INT
|
#define LIBAVUTIL_BUILD LIBAVUTIL_VERSION_INT
|
||||||
|
|
||||||
#define LIBAVUTIL_IDENT "Lavu" AV_STRINGIFY(LIBAVUTIL_VERSION)
|
#define LIBAVUTIL_IDENT "Lavu" AV_STRINGIFY(LIBAVUTIL_VERSION)
|
||||||
|
@@ -27,8 +27,10 @@
|
|||||||
* external api for the pp stuff
|
* external api for the pp stuff
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define LIBPOSTPROC_VERSION_INT ((51<<16)+(1<<8)+0)
|
#define LIBPOSTPROC_VERSION_TRIPLET 51,1,0
|
||||||
#define LIBPOSTPROC_VERSION 51.1.0
|
|
||||||
|
#define LIBPOSTPROC_VERSION_INT AV_VERSION_INT(LIBPOSTPROC_VERSION_TRIPLET)
|
||||||
|
#define LIBPOSTPROC_VERSION AV_VERSION(LIBPOSTPROC_VERSION_TRIPLET)
|
||||||
#define LIBPOSTPROC_BUILD LIBPOSTPROC_VERSION_INT
|
#define LIBPOSTPROC_BUILD LIBPOSTPROC_VERSION_INT
|
||||||
|
|
||||||
#define LIBPOSTPROC_IDENT "postproc" AV_STRINGIFY(LIBPOSTPROC_VERSION)
|
#define LIBPOSTPROC_IDENT "postproc" AV_STRINGIFY(LIBPOSTPROC_VERSION)
|
||||||
|
Reference in New Issue
Block a user