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

Hi.

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.

Best,
Evan
EvanStein is offline   Reply With Quote