mirror of
https://github.com/taglib/taglib.git
synced 2025-05-27 21:20:26 -04:00
Another workaround for broken MPEG headers.
This commit is contained in:
parent
7a5fb7d672
commit
1254534ed4
@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user