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 f4835f57c1f9e3e78f87bd278a1dfe9a7d6ea747..53245abd09f8ac74ee9592d446f975c1a2ebf21c 100644 |
--- a/webrtc/modules/remote_bitrate_estimator/aimd_rate_control.cc |
+++ b/webrtc/modules/remote_bitrate_estimator/aimd_rate_control.cc |
@@ -72,10 +72,9 @@ bool AimdRateControl::TimeToReduceFurther(int64_t time_now, |
return true; |
} |
if (ValidEstimate()) { |
- const int threshold = static_cast<int>(kWithinIncomingBitrateHysteresis * |
- incoming_bitrate_bps); |
- const int bitrate_difference = LatestEstimate() - incoming_bitrate_bps; |
- return bitrate_difference > threshold; |
+ const uint32_t threshold = static_cast<uint32_t> |
+ (kWithinIncomingBitrateHysteresis * LatestEstimate()); |
+ return incoming_bitrate_bps > threshold; |
stefan-webrtc
2016/11/29 15:52:08
Agree that it's wrong! I think the comment is wron
zhengpeng
2016/11/30 04:33:11
After reconsideration, I agree that if we are over
|
} |
return false; |
} |