]> granicus.if.org Git - taglib/commitdiff
Allow the second byte of MPEG header to contain 0xFF
authorJingmin Wei <weijingmin.cn@gmail.com>
Mon, 15 Apr 2013 07:46:08 +0000 (09:46 +0200)
committerLukáš Lalinský <lalinsky@gmail.com>
Mon, 15 Apr 2013 07:46:08 +0000 (09:46 +0200)
0xFF in the second byte means MPEG Version 1, Layer I, no CRC protection.

http://mpgedit.org/mpgedit/mpeg_format/MP3Format.html

taglib/mpeg/mpegfile.cpp

index 51cb5784ec9a0f6a90170924dc854a0cfae5c6f6..f765befb03a7540853d034273285a29556c5836c 100644 (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