taglib: Only match APE if MAC is found in the beginning of the file

This commit is contained in:
Jonas Kvinge 2020-06-27 02:01:24 +02:00
parent 286b270592
commit cd2932adea
1 changed files with 1 additions and 1 deletions

View File

@ -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);
} }