Re: severe discrepancies in mp3 frame counts

Chris Nandor <[email protected]>
Newsgroups gmane.comp.multimedia.xmms.devel
Message-ID <p06110402bcdb1230d433@[10.0.1.177]>
At 21:38 -0400 2004.05.26, Ben Winslow wrote:
>Now that it's not 4am, I took a look at MP3::Info and found the bug:
>--- Info.pm.bak 2004-05-26 21:28:34.000000000 -0400
>+++ Info.pm     2004-05-26 21:35:57.000000000 -0400
>@@ -702,7 +702,7 @@
>        my $mfs         = $h->{fs} / ($h->{ID} ? 144000 : 72000);
>        $i->{FRAMES}    = int($vbr && $vbr->{frames}
>                                ? $vbr->{frames}
>-                               : $i->{SIZE} / $h->{bitrate} / $mfs
>+                               : $i->{SIZE} / ($h->{bitrate} / $mfs)
>                          );
>
>        if ($vbr) {
>
>The $h->{bitrate} / $mfs bit to find the bytes per frame needs to happen
>first, and it wasn't.  Always the little things.  ;)

Ha!  Thanks.  Now I have some of the "encouragement" I need to put out a
new release.  :)

-- 
Chris Nandor                      [email protected]    http://pudge.net/
Open Source Development Network    [email protected]     http://osdn.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.