taglib: Only match APE if MAC is found in the beginning of the file
This commit is contained in:
parent
286b270592
commit
cd2932adea
|
@ -83,7 +83,7 @@ bool APE::File::isSupported(IOStream *stream) {
|
||||||
// An APE file has an ID "MAC " somewhere. An ID3v2 tag may precede.
|
// An APE file has an ID "MAC " somewhere. An ID3v2 tag may precede.
|
||||||
|
|
||||||
const ByteVector buffer = Utils::readHeader(stream, bufferSize(), true);
|
const ByteVector buffer = Utils::readHeader(stream, bufferSize(), true);
|
||||||
return (buffer.find("MAC ") != ByteVector::npos());
|
return (buffer.find("MAC ") == 0);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue