projects
/
FAPG
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
increase buffer size for ID3 with images
[FAPG]
/
fapg.c
diff --git
a/fapg.c
b/fapg.c
index
176c495
..
17b02b8
100644
(file)
--- a/
fapg.c
+++ b/
fapg.c
@@
-43,7
+43,7
@@
#define MP3_BASE 1024
#define OGG_BASE 1024*10
#define MP3_BASE 1024
#define OGG_BASE 1024*10
-#define MAX 1024*2
00 /* 20
0ko for ID3 with JPEG images in it */
+#define MAX 1024*2
50 /* 25
0ko for ID3 with JPEG images in it */
#define FORMAT_M3U 0
#define FORMAT_PLS 1
#define FORMAT_M3U 0
#define FORMAT_PLS 1
@@
-862,6
+862,13
@@
void parse_ogg(unsigned char *file)
title[size - 6] = '\0';
c += size;
}
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) +
if(strncasecmp(c, "ARTIST=", 7) == 0) {
size =
*(c - 4) + (*(c - 3) << 8) + (*(c - 2) << 16) +