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:
Christoffer Rodbro
2018-11-29 17:12:52 +01:00
committed by Commit Bot
parent b535c13e25
commit 5976bde2e6
3 changed files with 120 additions and 51 deletions

View File

@ -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);
}
}