1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-11-23 21:54:53 +02:00

less preprocessor magic in version number macros

Originally committed as revision 12246 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Måns Rullgård
2008-02-26 20:37:59 +00:00
parent 11fdbc4430
commit 800c289a66
6 changed files with 49 additions and 21 deletions

2
configure vendored
View File

@@ -2009,7 +2009,7 @@ fi
get_version(){
name=$1
file=$source_path/$2
grep "#define ${name}_VERSION_TRIPLET " "$file" | sed 's/[^0-9,]//g' | tr , .
printf '%s.%s.%s' $(grep "#define ${name}_VERSION_M" "$file" | sed 's/[^0-9]//g')
}
sws_version=$(get_version LIBSWSCALE libswscale/swscale.h)