Another workaround for broken MPEG headers.

This commit is contained in:
Tsuda Kageyu 2016-01-08 02:30:17 +09:00
parent 7a5fb7d672
commit 1254534ed4

View File

@ -48,7 +48,9 @@ namespace TagLib
inline bool secondSynchByte(unsigned char byte)
{
return ((byte & 0xE0) == 0xE0);
// 0xFF is possible in theory, but it's very unlikely be a header.
return (byte != 0xFF && ((byte & 0xE0) == 0xE0));
}
}