Avoids crash in VCMJitterEstimator due to incorrectly calculated mean FPS.
Bug: webrtc:10728 Change-Id: I9e50ebdcfd9ef7d408cbf00111f29f0c80fd6c75 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/141402 Commit-Queue: Sebastian Jansson <srte@webrtc.org> Reviewed-by: Erik Språng <sprang@webrtc.org> Cr-Commit-Position: refs/heads/master@{#28226}
This commit is contained in:

committed by
Commit Bot

parent
49d661a7d3
commit
7a994334f1
@ -416,7 +416,7 @@ int VCMJitterEstimator::GetJitterEstimate(
|
||||
}
|
||||
|
||||
double VCMJitterEstimator::GetFrameRate() const {
|
||||
if (fps_counter_.ComputeMean() == 0.0)
|
||||
if (fps_counter_.ComputeMean() <= 0.0)
|
||||
return 0;
|
||||
|
||||
double fps = 1000000.0 / fps_counter_.ComputeMean();
|
||||
|
Reference in New Issue
Block a user