From: Jingmin Wei Date: Mon, 15 Apr 2013 07:46:08 +0000 (+0200) Subject: Allow the second byte of MPEG header to contain 0xFF X-Git-Tag: v1.9~78 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4a85e1e1ca4af7c4453b59b2985702df96660f42;p=taglib 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 --- diff --git a/taglib/mpeg/mpegfile.cpp b/taglib/mpeg/mpegfile.cpp index 51cb5784..f765befb 100644 --- a/taglib/mpeg/mpegfile.cpp +++ b/taglib/mpeg/mpegfile.cpp @@ -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