Wire up bandwidth stats to the new API and webrtcvideoengine2.
Adds stats to verify bandwidth and pacer stats. BUG=1788 R=mflodman@webrtc.org, pbos@webrtc.org Review URL: https://webrtc-codereview.appspot.com/24969004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7634 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -542,7 +542,7 @@ void MediaOptimization::UpdateSentBitrate(int64_t now_ms) {
|
||||
now_ms - encoded_frame_samples_.front().time_complete_ms);
|
||||
if (denom >= 1.0f) {
|
||||
avg_sent_bit_rate_bps_ =
|
||||
static_cast<uint32_t>(framesize_sum * 8 * 1000 / denom + 0.5f);
|
||||
static_cast<uint32_t>(framesize_sum * 8.0f * 1000.0f / denom + 0.5f);
|
||||
} else {
|
||||
avg_sent_bit_rate_bps_ = framesize_sum * 8;
|
||||
}
|
||||
|
Reference in New Issue
Block a user