Fixed calculateBitrate()