From c86a2fce7005a3a51340afec702dc0b278363263 Mon Sep 17 00:00:00 2001 From: Urs Fleisch Date: Thu, 16 Nov 2023 18:47:44 +0100 Subject: [PATCH] Fix MPC content check in presence of ID3v2 tag --- taglib/mpc/mpcfile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/taglib/mpc/mpcfile.cpp b/taglib/mpc/mpcfile.cpp index 22df9184..c12b7d7e 100644 --- a/taglib/mpc/mpcfile.cpp +++ b/taglib/mpc/mpcfile.cpp @@ -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+")); }