Prevent zero division in VCMJitterEstimator.

BUG=webrtc:5124
R=sprang@webrtc.org, stefan@webrtc.org

Review URL: https://codereview.webrtc.org/1652903002 .

Cr-Commit-Position: refs/heads/master@{#11445}
This commit is contained in:
Peter Boström
2016-02-01 16:31:10 +01:00
parent b46c333139
commit 74451a5ea9

View File

@ -429,7 +429,7 @@ bool VCMJitterEstimator::LowRateExperimentEnabled() {
}
double VCMJitterEstimator::GetFrameRate() const {
if (fps_counter_.count() == 0)
if (fps_counter_.ComputeMean() == 0.0)
return 0;
double fps = 1000000.0 / fps_counter_.ComputeMean();