Add ability to cap the video jitter estimate to a max value.
Bug: webrtc:10572 Change-Id: I21112824dc02afa71db61bb8c2f02723e8b325b6 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/133963 Commit-Queue: Michael Horowitz <mhoro@webrtc.org> Reviewed-by: Stefan Holmer <stefan@webrtc.org> Cr-Commit-Position: refs/heads/master@{#27744}
This commit is contained in:
@ -299,10 +299,14 @@ EncodedFrame* FrameBuffer::GetNextFrame() {
|
||||
}
|
||||
|
||||
float rtt_mult = protection_mode_ == kProtectionNackFEC ? 0.0 : 1.0;
|
||||
float jitter_est_cap_ms = 300.0;
|
||||
if (RttMultExperiment::RttMultEnabled()) {
|
||||
rtt_mult = RttMultExperiment::GetRttMultValue();
|
||||
// TODO(mhoro): add RttMultExperiment::GetJitterEstCapValue();
|
||||
jitter_est_cap_ms = 300.0;
|
||||
}
|
||||
timing_->SetJitterDelay(jitter_estimator_->GetJitterEstimate(rtt_mult));
|
||||
timing_->SetJitterDelay(
|
||||
jitter_estimator_->GetJitterEstimate(rtt_mult, jitter_est_cap_ms));
|
||||
timing_->UpdateCurrentDelay(render_time_ms, now_ms);
|
||||
} else {
|
||||
if (RttMultExperiment::RttMultEnabled() || add_rtt_to_playout_delay_)
|
||||
|
Reference in New Issue
Block a user