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
139 stars 41 forks source link

const FRAME_SYNC missing #9

Closed kainabel closed 5 years ago

kainabel commented 6 years ago

e.g. for line 27: const FRAME_SYNC = 0xffe0; // bit mask

and return ($raw == self::TAG2_SYNC || (self::FRAME_SYNC == (unpack('n*', $raw)[1] & self::FRAME_SYNC))); as a replacement for https://github.com/wapmorgan/Mp3Info/blob/1f083faf60401a1e833309ba48147123c507c4a4/src/Mp3Info.php#L669

wapmorgan commented 5 years ago

Fixed

t0mmie commented 5 years ago

@wapmorgan do you have a new release planned with this fix?

wapmorgan commented 5 years ago

@t0mmie Released