baseparse: Fix integer overflow in bitrate calculation