mirror of
https://github.com/taglib/taglib.git
synced 2025-05-27 21:20:26 -04:00
Fix MPC content check in presence of ID3v2 tag
This commit is contained in:
parent
faddc4aa06
commit
c86a2fce70
@ -65,9 +65,9 @@ public:
|
||||
bool MPC::File::isSupported(IOStream *stream)
|
||||
{
|
||||
// A newer MPC file has to start with "MPCK" or "MP+", but older files don't
|
||||
// have keys to do a quick check.
|
||||
// have keys to do a quick check. An ID3v2 tag may precede.
|
||||
|
||||
const ByteVector id = Utils::readHeader(stream, 4, false);
|
||||
const ByteVector id = Utils::readHeader(stream, 4, true);
|
||||
return (id == "MPCK" || id.startsWith("MP+"));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user