X-Git-Url: http://royale.zerezo.com/git/?p=FAPG;a=blobdiff_plain;f=fapg.c;h=17b02b8cb2d58fb7b260a8a2964fb5361c98f8e4;hp=176c495c31fc058eb9c5494cd3845841cb88221f;hb=0c1e07e01c487f248ed61fd22fd2a85be49eae19;hpb=02dbbe8a7969f09a693027db1c3739c07dde7d02 diff --git a/fapg.c b/fapg.c index 176c495..17b02b8 100644 --- a/fapg.c +++ b/fapg.c @@ -43,7 +43,7 @@ #define MP3_BASE 1024 #define OGG_BASE 1024*10 -#define MAX 1024*200 /* 200ko for ID3 with JPEG images in it */ +#define MAX 1024*250 /* 250ko for ID3 with JPEG images in it */ #define FORMAT_M3U 0 #define FORMAT_PLS 1 @@ -862,6 +862,13 @@ void parse_ogg(unsigned char *file) title[size - 6] = '\0'; c += size; } + if(strncasecmp(c, "ALBUM ARTIST=", 13) == 0) { + // ignore tag + size = + *(c - 4) + (*(c - 3) << 8) + (*(c - 2) << 16) + + (*(c - 1) << 24); + c += size; + } if(strncasecmp(c, "ARTIST=", 7) == 0) { size = *(c - 4) + (*(c - 3) << 8) + (*(c - 2) << 16) +