Subject: | supported_majors incorrect comparison |
I verified this in 0.9703, and it appears 0.9704 is broken too. I didn't
check any other versions. This is a sort of off-by-one error I suppose.
The version check compares the value of $major to the number of elements
in @supported_majors minus one ($#supported_majors). So, for example, if
you have $major equal to 4 [@supported_majors = (0,0,1,1,1)], then
$major >= $#supported_majors is true (as in not supported) although
$supported_majors[$major] == 1.
This is the comparison (ID3v2.pm):
# check the version
if ($major >= $#supported_majors or $supported_majors[$major] == 0) {
It just needs the "=" removed from ">=".