pInfo->imageInfo.bURLInfo = true;
}
-static bool _mm_file_id3tag_parse_PIC(AvFileContentInfo *pInfo, unsigned char *pTagVal, int nTagLen, const char *pCharSet)
+static void _mm_file_id3tag_parse_PIC(AvFileContentInfo *pInfo, unsigned char *pTagVal, int nTagLen, const char *pCharSet)
{
/* current position to read pTagVal */
int offset = 0;
debug_fenter(RELEASE);
- if (!__id3tag_parse_PIC_format(pInfo, pTagVal, &offset)) {
+ if (!__id3tag_parse_PIC_format(pInfo, pTagVal, &offset))
debug_msg(RELEASE, "PIC is not valid\n");
- return false;
- }
__id3tag_parse_APIC_pictype(pInfo, pTagVal, &offset);
__id3tag_parse_APIC_desc(pInfo, pTagVal, nTagLen, pCharSet, &offset);
__id3tag_parse_APIC_picture(pInfo, pTagVal, nTagLen, &offset);
debug_fleave(RELEASE);
-
- return true;
}
static bool _mm_file_id3tag_parse_APIC(AvFileContentInfo *pInfo, unsigned char *pTagVal, int nTagLen, const char *pCharSet)
if (encodingOffSet < purelyFramelen) {
realCpyFrameNum = purelyFramelen - encodingOffSet;
+ mmfile_free(pExtContent);
pExtContent = mmfile_malloc(realCpyFrameNum + 3);
if (pExtContent == NULL) {
pInfo->tagV2Info.bRecDateMarked = true;
} else if (strncmp((char *)CompTmp, "PIC", 3) == 0 && pInfo->tagV2Info.bImageMarked == false && realCpyFrameNum <= 2000000) {
debug_msg(DEBUG, "text encoding %d \n", textEncodingType);
- if (!_mm_file_id3tag_parse_PIC(pInfo, pExtContent, realCpyFrameNum, (const char*)charset_array[textEncodingType]))
- continue;
+ _mm_file_id3tag_parse_PIC(pInfo, pExtContent, realCpyFrameNum, (const char*)charset_array[textEncodingType]);
pInfo->tagV2Info.bImageMarked = true;
}
}