From ed6cf23b38b0a3695e7c8bbe2f82135901d11524 Mon Sep 17 00:00:00 2001 From: Jeremy Simon Date: Fri, 25 Apr 2003 20:21:50 +0000 Subject: [PATCH] workaround to support APE Tag v2 Original commit message from CVS: workaround to support APE Tag v2 --- gst/monkeyaudio/libmonkeyaudio/APETag.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/monkeyaudio/libmonkeyaudio/APETag.cpp b/gst/monkeyaudio/libmonkeyaudio/APETag.cpp index 217b0fcbac..865c46a2da 100644 --- a/gst/monkeyaudio/libmonkeyaudio/APETag.cpp +++ b/gst/monkeyaudio/libmonkeyaudio/APETag.cpp @@ -240,10 +240,11 @@ int CAPETag::Analyze() APE_TAG_FOOTER APETagFooter; m_spIO->Seek(-int(sizeof(APE_TAG_FOOTER)), FILE_END); nRetVal = m_spIO->Read((unsigned char *) &APETagFooter, sizeof(APE_TAG_FOOTER), &nBytesRead); + if ((nBytesRead == sizeof(APE_TAG_FOOTER)) && (nRetVal == 0)) { if ((strncmp(APETagFooter.cID, "APETAGEX", 8) == 0) && - (APETagFooter.nVersion <= CURRENT_APE_TAG_VERSION) && + /*(APETagFooter.nVersion <= CURRENT_APE_TAG_VERSION) &&*/ (APETagFooter.nFields <= 65536) && (APETagFooter.nSize <= (1024 * 1024 * 16))) {