wapmorgan / Mp3Info

The fastest PHP library to extract mp3 meta information (duration, bitrate, samplerate and so on) and tags (id3v1, id3v2).
https://wapmorgan.github.io/Mp3Info/
GNU Lesser General Public License v3.0
141 stars 41 forks source link

Can't parse propely #35

Open Lecodeurenretard opened 7 months ago

Lecodeurenretard commented 7 months ago

Hello, When I try to parse those files, I get null chars and errors in parsing. This error is common to the files with Naoto Tanaka. null (2009 is the year field)

mbirth commented 5 months ago

There was an issue with the frame size calculation for ID3v2.4, it seems. ID3v2.4 uses the 4 * %0xxxxxxx variant while ID3v2.3 uses $xx xx xx xx.

I've fixed that in my develop branch: https://github.com/mbirth/Mp3Info/tree/develop