Subject: | bug with length ? |
Date: | Wed, 14 Jan 2009 19:15:32 +0100 |
To: | <bug-MP3-Info [...] rt.cpan.org.> |
From: | "Stephan VANNI" <svanni [...] vecsys.fr> |
Hello,
Great module, but i possibly found a bug in _get_info :
...
$h->{'length'} = ($i->{SIZE} * 8) / $h->{bitrate} / 10;
$i->{SECS} = $h->{'length'} / 100;
...
But to get seconds you've got to divide by 1024 and not 1000 (10*100).
My english is poor but did you understand
I'm quit sure and have try with some wave files converted in mp3 with exact length and the module returned the length + a little offset.
Thank you very much for your response,
-------------------------------------------------------------------------
Stephan VANNI
VECSYS
ZA de COURTABOEUF - LES ULIS
3, rue de la Terre de Feu
91952 COURTABOEUF CEDEX
FRANCE
Tél. : +33 (0)1 69 29 87 94
Fax : +33 (0)1 69 07 58 58
<mailto:svanni@vecsys.fr>
<http://www.vecsys.fr <http://www.vecsys.fr/> >