int id3v2Len = 0;
unsigned int meta_version = 0;
MMFILE_3GP_HANDLER_BOX hdlrBox = {0, };
- unsigned int encSize = 0;
int id3_meta = 0;
#ifdef ENABLE_ITUNES_META /* We don't support itunes meta now. so this is not defined yet */
int iTunes_meta = 0;
goto exception;
}
- encSize = mmfile_io_le_uint32((unsigned int)&id3v2Box.id3v2Data[6]);
tagInfo.tagV2Info.tagLen = MP3_TAGv2_HEADER_LEN;
- tagInfo.tagV2Info.tagLen += (((encSize & 0x0000007F) >> 0) | ((encSize & 0x00007F00) >> 1) | ((encSize & 0x007F0000) >> 2) | ((encSize & 0x7F000000) >> 3));
+ tagInfo.tagV2Info.tagLen += (((id3v2Box.id3v2Data[6] & 0x7F) << 21) | ((id3v2Box.id3v2Data[7] & 0x7F) << 14) | ((id3v2Box.id3v2Data[8] & 0x7F) << 7) | ((id3v2Box.id3v2Data[9] & 0x7F)));
tagInfo.tagV2Info.tagVersion = tagVersion;
tagInfo.fileLen = id3v2Len;