Correctly reset totalBitRate when we have to reset frames