commit | 5976bde2e6f5a3ece99b688e09284f4faa60f05f | [log] [tgz] |
---|---|---|
author | Christoffer Rodbro <crodbro@webrtc.org> | Thu Nov 29 17:12:52 2018 +0100 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Nov 29 17:22:59 2018 +0000 |
tree | 44805a47807300a0e4a2047ca24747fdff039ef8 | |
parent | b535c13e25e376abfe833e373ce4475f02e0fe03 [diff] |
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}
diff --git a/modules/bitrate_controller/loss_based_bandwidth_estimation.cc b/modules/bitrate_controller/loss_based_bandwidth_estimation.cc index 5d7f8aa..f22f970 100644 --- a/modules/bitrate_controller/loss_based_bandwidth_estimation.cc +++ b/modules/bitrate_controller/loss_based_bandwidth_estimation.cc
@@ -156,9 +156,9 @@ 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); } }