Fix GCC 4.6 build error.
TBR=kjellander BUG= Review URL: https://webrtc-codereview.appspot.com/794004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@2742 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
c58be0d217
commit
2578300eee
@ -71,11 +71,6 @@ WebRtc_UWord32 BitRateStats::BitRate(WebRtc_Word64 nowMs)
|
|||||||
// Calculate the average bit rate the past BITRATE_AVERAGE_WINDOW ms.
|
// Calculate the average bit rate the past BITRATE_AVERAGE_WINDOW ms.
|
||||||
// Removes any old samples from the list.
|
// Removes any old samples from the list.
|
||||||
EraseOld(nowMs);
|
EraseOld(nowMs);
|
||||||
WebRtc_Word64 timeOldest = nowMs;
|
|
||||||
if (_dataSamples.size() > 0)
|
|
||||||
{
|
|
||||||
timeOldest = _dataSamples.front()->_timeCompleteMs;
|
|
||||||
}
|
|
||||||
return static_cast<WebRtc_UWord32>(_accumulatedBytes * 8.0f * 1000.0f /
|
return static_cast<WebRtc_UWord32>(_accumulatedBytes * 8.0f * 1000.0f /
|
||||||
kBitrateAverageWindow + 0.5f);
|
kBitrateAverageWindow + 0.5f);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user