Allow the second byte of MPEG header to contain 0xFF

0xFF in the second byte means MPEG Version 1, Layer I, no CRC protection.

http://mpgedit.org/mpgedit/mpeg_format/MP3Format.html
This commit is contained in:
Jingmin Wei 2013-04-15 09:46:08 +02:00 committed by Lukáš Lalinský
parent 94efe5c187
commit 4a85e1e1ca

View File

@ -656,9 +656,6 @@ void MPEG::File::findAPE()
bool MPEG::File::secondSynchByte(char byte)
{
if(uchar(byte) == 0xff)
return false;
std::bitset<8> b(byte);
// check to see if the byte matches 111xxxxx