From cd2932adea7c9ac9fdd4dbfbda53b9953533c5ba Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sat, 27 Jun 2020 02:01:24 +0200 Subject: [PATCH] taglib: Only match APE if MAC is found in the beginning of the file --- 3rdparty/taglib/ape/apefile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3rdparty/taglib/ape/apefile.cpp b/3rdparty/taglib/ape/apefile.cpp index a7ad2cce4..2b0095fb1 100644 --- a/3rdparty/taglib/ape/apefile.cpp +++ b/3rdparty/taglib/ape/apefile.cpp @@ -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); }