From 0c1e07e01c487f248ed61fd22fd2a85be49eae19 Mon Sep 17 00:00:00 2001 From: Peter Cherriman Date: Wed, 23 Jul 2008 19:41:20 +0100 Subject: [PATCH] increase buffer size for ID3 with images > Peter Cherriman wrote: >> Here's the bug report.... >> >> FAPG outputs the following message: >> >> Warning >> ID3 header is huge (217974 bytes) ! trying anyway : >> /media/SANSA CLIP/GPODDER/scc18_final_kunle_olukotun.mp3 >> >> It then doesn't output a #EXTINF line for the file. Antoine Jacquet wrote: > I think there is a hard limit in FAPG on the number of bytes I read in > the file to avoid performance issues, so I think the ID3 artist/title > tag is after the image in your particular file, and this is why FAPG > never reaches it. Thanks for your advice. I fixed it by increasing the size of the "MAX" read size in bytes slightly from 200*1024 to 250*1024. The problem file I had a header of 217974 bytes. Signed-off-by: Antoine Jacquet --- fapg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fapg.c b/fapg.c index 38a27bf..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 -- 2.20.1