Clean-up for calculation of upper bandwidth limit.

Follow-up for https://webrtc-review.googlesource.com/c/src/+/219696.

Bug: webrtc:12306
Change-Id: I94861f87e83216d8e92ff09e0f2ce39fd672d9f8
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/220100
Reviewed-by: Åsa Persson <asapersson@webrtc.org>
Commit-Queue: Christoffer Rodbro <crodbro@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#34113}
This commit is contained in:
Christoffer Rodbro
2021-05-25 11:16:42 +02:00
committed by WebRTC LUCI CQ
parent 81e13d3d6e
commit 2ab4764b9e

View File

@ -579,9 +579,7 @@ void SendSideBandwidthEstimation::UpdateMinHistory(Timestamp at_time) {
}
DataRate SendSideBandwidthEstimation::GetUpperLimit() const {
DataRate upper_limit = delay_based_limit_;
upper_limit = std::min(upper_limit, max_bitrate_configured_);
return upper_limit;
return std::min(delay_based_limit_, max_bitrate_configured_);
}
void SendSideBandwidthEstimation::MaybeLogLowBitrateWarning(DataRate bitrate,