diff options
author | marpan@webrtc.org <marpan@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | 2013-05-16 15:38:44 +0000 |
---|---|---|
committer | marpan@webrtc.org <marpan@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | 2013-05-16 15:38:44 +0000 |
commit | d43489100d10e24b7d505070bb83d51bf609c2ac (patch) | |
tree | d9b73fc34643a4e5b368c1cbfb68dcd5575aa386 | |
parent | 4efbd60660e657ff449dfa7c16f8d4dee5c6e453 (diff) | |
download | webrtc-d43489100d10e24b7d505070bb83d51bf609c2ac.tar.gz |
Bugfix: VCM would report wrong sentBitrate
issue: https://code.google.com/p/webrtc/issues/detail?id=1755
R=stefan@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/1484004
git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@4048 4adac7df-926f-26a2-2b94-8c16560cd09d
-rw-r--r-- | modules/video_coding/main/source/media_optimization.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/video_coding/main/source/media_optimization.cc b/modules/video_coding/main/source/media_optimization.cc index 4262868a..24cf3162 100644 --- a/modules/video_coding/main/source/media_optimization.cc +++ b/modules/video_coding/main/source/media_optimization.cc @@ -457,7 +457,7 @@ void VCMMediaOptimization::UpdateSentBitrate(int64_t now_ms) { framesize_sum += it->size_bytes; } float denom = static_cast<float>( - now_ms - _encodedFrameSamples.back().time_complete_ms); + now_ms - _encodedFrameSamples.front().time_complete_ms); if (denom >= 1.0f) { _avgSentBitRateBps = static_cast<uint32_t>(framesize_sum * 8 * 1000 / denom + 0.5f); |