1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2025-02-02 10:36:45 +01:00

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

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.
const ByteVector buffer = Utils::readHeader(stream, bufferSize(), true);
return (buffer.find("MAC ") != ByteVector::npos());
return (buffer.find("MAC ") == 0);
}