X-Git-Url: http://royale.zerezo.com/git/?p=FAPG;a=blobdiff_plain;f=fapg.c;h=bd2b3f0ea2c1d79ee2c29ff3d177621c524e2de8;hp=745e6ae3387ac42c944c1fee7d2ce19125463de0;hb=refs%2Ftags%2Fv0.43;hpb=c921eac7a8659c4994abb0f7b6cb07a0ae168139 diff --git a/fapg.c b/fapg.c index 745e6ae..bd2b3f0 100644 --- a/fapg.c +++ b/fapg.c @@ -768,6 +768,9 @@ void parse_mp3(unsigned char *file) /* genre=atoi(&genrebuf[1]); */ genre = atoi(c + 12); } + if(strncmp(c, "TLEN", 4) == 0) { + duration = atoi(c + 11) / 1000; + } c += size + 10; } }