compute total bitrate more accurately, patch by corp186, chasedouglas at gmail dot com