mp3: Avoid rounding errors during bitrate calculation.
authorAndre Noll <maan@systemlinux.org>
Sun, 15 Mar 2009 17:59:48 +0000 (18:59 +0100)
committerAndre Noll <maan@systemlinux.org>
Sun, 15 Mar 2009 17:59:48 +0000 (18:59 +0100)
commit53538a87930479923ae574e30bfbf2cc1c997b29
tree400224d3c4ae666e3e443122f1a90e0f776b02c6
parent62ed05732ec3669aae2ef4a544df216641cb4e3a
mp3: Avoid rounding errors during bitrate calculation.

Just add up the bitrates of all frames and divide by the number
of frames afterwards. By using uint64_t for the sum, we should
be safe wrt. overflows.
mp3_afh.c