| Index: webrtc/modules/remote_bitrate_estimator/aimd_rate_control.cc
|
| diff --git a/webrtc/modules/remote_bitrate_estimator/aimd_rate_control.cc b/webrtc/modules/remote_bitrate_estimator/aimd_rate_control.cc
|
| index d903cf9af7ea633144c7dc16f0442f6c02344d3f..55216a071b0cf4cfb9521c9c8fbf082921a00524 100644
|
| --- a/webrtc/modules/remote_bitrate_estimator/aimd_rate_control.cc
|
| +++ b/webrtc/modules/remote_bitrate_estimator/aimd_rate_control.cc
|
| @@ -62,11 +62,11 @@ int64_t AimdRateControl::GetFeedbackInterval() const {
|
| // Estimate how often we can send RTCP if we allocate up to 5% of bandwidth
|
| // to feedback.
|
| static const int kRtcpSize = 80;
|
| - int64_t interval = static_cast<int64_t>(
|
| + const int64_t interval = static_cast<int64_t>(
|
| kRtcpSize * 8.0 * 1000.0 / (0.05 * current_bitrate_bps_) + 0.5);
|
| const int64_t kMinFeedbackIntervalMs = 200;
|
| - return std::min(std::max(interval, kMinFeedbackIntervalMs),
|
| - kMaxFeedbackIntervalMs);
|
| + return rtc::SafeClamp(kMinFeedbackIntervalMs, kMaxFeedbackIntervalMs,
|
| + interval);
|
| }
|
|
|
| bool AimdRateControl::TimeToReduceFurther(int64_t time_now,
|
|
|