#define MASK_PADDING 0x02 /* 00000010 */
#define _AV_MP3_HEADER_POSITION_MAX (50*1024) /* mp3 header should be exist inside this size */
-#define AV_MP3_HEADER_READ_MAX 200000 /* mp3 header should be exist inside this size */
-#define AV_WM_LOCALCODE_SIZE_MAX 2
/*
* Xing Header Information
debug_fenter(RELEASE);
- if (pInfo == NULL || filename == NULL)
+ if (!pInfo || !filename)
return -1;
memset(pInfo, 0x00, sizeof(AvFileContentInfo));
/* if taglen is invlaid, check whole file to get MP3 info */
if (mmfile_seek(hFile, 0L, SEEK_SET) < 0)
goto EXCEPTION;
+
pInfo->tagV2Info.tagLen = 0;
bufLen = pInfo->fileLen;
}
debug_msg(RELEASE, "buf size(%lu)\n", bufLen);
buf = mmfile_malloc(bufLen);
- if (!buf) {
+ if (!buf)
goto EXCEPTION;
- }
if (mmfile_read(hFile, buf, bufLen) != (int)bufLen) {
mmfile_free(buf);
#define NEWLINE_OF_UTF16_R(x) (((x))[0] == 0xFE && ((x))[1] == 0xFF && ((x))[2] == 0x00 && ((x))[3] == 0x00)
-#define AV_WM_LOCALCODE_SIZE_MAX 2
#define MP3_TAGv2_HEADER_LEN 10
#define MP3_TAGv2_23_TXT_HEADER_LEN 10
#define MP3_TAGv2_22_TXT_HEADER_LEN 6