in reply to Re^4: ID3v2 TAG Footer Reading goes wrong
in thread ID3v2 TAG Footer Reading goes wrong

ID3 uses big-endian byte order (high byte first), so you've got them backwards. Also, think about using a sub, like roboticus says.
  • Comment on Re^5: ID3v2 TAG Footer Reading goes wrong