"Contemporary", "Christian Rock", "Merengue", "Salsa", "Thrash Metal", "Anime", "JPop", "Synthpop", "Unknown"
};
+static unsigned char gTagJPEGHeader[] = {0xff, 0xd8, 0xff };
+static unsigned char gTagPNGHeader[] = {0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a };
static int GetStringFromTextTagBox(MMFileFormatContext *formatContext, MMFileIOHandle *fp, MMFILE_MP4_BASIC_BOX_HEADER *basic_header, eMMFILE_3GP_TEXT_TAG eTag)
{
int cur_pos = 0;
int dis_len = 0;
int new_dis_len = 0;
- unsigned char jpg_sign[3] = {0xff, 0xd8, 0xff};
- unsigned char png_sign[8] = {0x80, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a};
char *tmp_desc = NULL;
while (1) {
break;
}
/*check end of image description*/
- if ((pExtContent[imgstartOffset + cur_pos + 1] == jpg_sign[0]) ||
- (pExtContent[imgstartOffset + cur_pos + 1] == png_sign[0])) {
+ if ((pExtContent[imgstartOffset + cur_pos + 1] == gTagJPEGHeader[0]) ||
+ (pExtContent[imgstartOffset + cur_pos + 1] == gTagPNGHeader[0])) {
#ifdef __MMFILE_TEST_MODE__
debug_msg("length of description (%d)", cur_pos);
#endif
int cur_pos = 0;
int dis_len = 0;
int new_dis_len = 0;
- unsigned char jpg_sign[3] = {0xff, 0xd8, 0xff};
- unsigned char png_sign[8] = {0x80, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a};
char *tmp_desc = NULL;
while (1) {
break;
}
/*check end of image description*/
- if ((pExtContent[imgstartOffset + cur_pos + 1] == jpg_sign[0]) ||
- (pExtContent[imgstartOffset + cur_pos + 1] == png_sign[0])) {
+ if ((pExtContent[imgstartOffset + cur_pos + 1] == gTagJPEGHeader[0]) ||
+ (pExtContent[imgstartOffset + cur_pos + 1] == gTagPNGHeader[0])) {
#ifdef __MMFILE_TEST_MODE__
debug_msg("length of description (%d)", cur_pos);
#endif
int cur_pos = 0;
int dis_len = 0;
int new_dis_len = 0;
- unsigned char jpg_sign[3] = {0xff, 0xd8, 0xff};
- unsigned char png_sign[8] = {0x80, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a};
char *tmp_desc = NULL;
while (1) {
break;
}
/*check end of image description*/
- if ((pExtContent[imgstartOffset + cur_pos + 1] == jpg_sign[0]) ||
- (pExtContent[imgstartOffset + cur_pos + 1] == png_sign[0])) {
+ if ((pExtContent[imgstartOffset + cur_pos + 1] == gTagJPEGHeader[0]) ||
+ (pExtContent[imgstartOffset + cur_pos + 1] == gTagPNGHeader[0])) {
#ifdef __MMFILE_TEST_MODE__
debug_msg("length of description (%d)", cur_pos);
#endif