mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +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;
|
APE_TAG_FOOTER APETagFooter;
|
||||||
m_spIO->Seek(-int(sizeof(APE_TAG_FOOTER)), FILE_END);
|
m_spIO->Seek(-int(sizeof(APE_TAG_FOOTER)), FILE_END);
|
||||||
nRetVal = m_spIO->Read((unsigned char *) &APETagFooter, sizeof(APE_TAG_FOOTER), &nBytesRead);
|
nRetVal = m_spIO->Read((unsigned char *) &APETagFooter, sizeof(APE_TAG_FOOTER), &nBytesRead);
|
||||||
|
|
||||||
if ((nBytesRead == sizeof(APE_TAG_FOOTER)) && (nRetVal == 0))
|
if ((nBytesRead == sizeof(APE_TAG_FOOTER)) && (nRetVal == 0))
|
||||||
{
|
{
|
||||||
if ((strncmp(APETagFooter.cID, "APETAGEX", 8) == 0) &&
|
if ((strncmp(APETagFooter.cID, "APETAGEX", 8) == 0) &&
|
||||||
(APETagFooter.nVersion <= CURRENT_APE_TAG_VERSION) &&
|
/*(APETagFooter.nVersion <= CURRENT_APE_TAG_VERSION) &&*/
|
||||||
(APETagFooter.nFields <= 65536) &&
|
(APETagFooter.nFields <= 65536) &&
|
||||||
(APETagFooter.nSize <= (1024 * 1024 * 16)))
|
(APETagFooter.nSize <= (1024 * 1024 * 16)))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue