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:
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user