mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
workaround to support APE Tag v2
Original commit message from CVS: workaround to support APE Tag v2
This commit is contained in:
parent
42a4abb285
commit
ed6cf23b38
1 changed files with 2 additions and 1 deletions
|
@ -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)))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue