Old 26th October 2007, 16:27   #1
Junior Member
Join Date: Oct 2007
Location: London
Posts: 1
FLAC bit rate calculation


I'm very impressed by v. 5.5. Among other things, it deals very nicely with album art, and I'm insanely happy about the FLAC support.

I believe I've found a small calculation error. After loading an image (i.e., a big chunk of metadata), the reported bit rate changed. It looks like you're calculating the bit rate as:

(File Size * 8)/Time

so that when the file size grows, the bit rate changes, even if the change in size is due to an embedded image.

If you amend it to:

((File Size - Header Size) * 8)/Time

everything will be fine.

Hope this helps.

EvanStein is offline   Reply With Quote
Go Back   Winamp & Shoutcast Forums > Winamp > Winamp Bug Reports

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump