Unittests for loss based bandwidth estimation.
Bug: none Change-Id: I204071683c1c6e28040ea3bce900c4b04108cba7 Reviewed-on: https://webrtc-review.googlesource.com/c/112380 Commit-Queue: Christoffer Rodbro <crodbro@webrtc.org> Reviewed-by: Sebastian Jansson <srte@webrtc.org> Cr-Commit-Position: refs/heads/master@{#25844}
This commit is contained in:
committed by
Commit Bot
parent
b535c13e25
commit
5976bde2e6
@ -156,9 +156,9 @@ void LossBasedBandwidthEstimation::UpdateAcknowledgedBitrate(
|
||||
if (acknowledged_bitrate > acknowledged_bitrate_max_) {
|
||||
acknowledged_bitrate_max_ = acknowledged_bitrate;
|
||||
} else {
|
||||
acknowledged_bitrate_max_ +=
|
||||
acknowledged_bitrate_max_ -=
|
||||
ExponentialUpdate(config_.acknowledged_rate_max_window, time_passed) *
|
||||
(acknowledged_bitrate - acknowledged_bitrate_max_);
|
||||
(acknowledged_bitrate_max_ - acknowledged_bitrate);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user