]> git.sesse.net Git - ffmpeg/blobdiff - version.sh
Intel H.263 aspect ratio processing fix.
[ffmpeg] / version.sh
index 66a1c6f0ac17412ff013f0ee3be68b31d94d8194..51bca4f21ae4c072250a3e44fb67439d09ff823d 100755 (executable)
@@ -1,11 +1,8 @@
 #!/bin/sh
 
-revision=$(cd "$1" && cat snapshot_version 2> /dev/null)
-test "$revision" && revision=SVN-r$revision
-
 # check for git short hash
 if ! test "$revision"; then
-    revision=$(cd "$1" && git describe --always 2> /dev/null)
+    revision=$(cd "$1" && git describe --tags --match N 2> /dev/null)
     test "$revision" && revision=git-$revision
 fi
 
@@ -23,7 +20,7 @@ if [ -z "$2" ]; then
     exit
 fi
 
-NEW_REVISION="#define LIBAV_VERSION \"$version\""
+NEW_REVISION="#define FFMPEG_VERSION \"$version\""
 OLD_REVISION=$(cat version.h 2> /dev/null)
 
 # Update version.h only on revision changes to avoid spurious rebuilds