Skip to content

Commit

Permalink
mythtv/configure: fix detection of FFmpeg's version numbers
Browse files Browse the repository at this point in the history
FFmpeg has split their version.h into version_major.h and version.h.

libavutil has an empty version_major.h.
  • Loading branch information
ulmus-scott authored and bennettpeter committed Sep 19, 2022
1 parent 40a04d5 commit 422fbc8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mythtv/configure
Expand Up @@ -7750,7 +7750,8 @@ get_version(){
lcname=lib${1}
name=$(toupper $lcname)
file=$source_path/external/FFmpeg/$lcname/version.h
eval $(awk "/#define ${name}_VERSION_M/ { print \$2 \"=\" \$3 }" "$file")
file_major=$source_path/external/FFmpeg/$lcname/version_major.h
eval $(awk "/#define ${name}_VERSION_M/ { print \$2 \"=\" \$3 }" "$file_major" "$file")
enabled raise_major && eval ${name}_VERSION_MAJOR=$((${name}_VERSION_MAJOR+100))
eval ${name}_VERSION=\$${name}_VERSION_MAJOR.\$${name}_VERSION_MINOR.\$${name}_VERSION_MICRO
eval echo "${lcname}_VERSION=\$${name}_VERSION" >> $TMPMAK
Expand Down

0 comments on commit 422fbc8

Please sign in to comment.