| Index: webrtc/modules/congestion_controller/delay_based_bwe.cc
|
| diff --git a/webrtc/modules/congestion_controller/delay_based_bwe.cc b/webrtc/modules/congestion_controller/delay_based_bwe.cc
|
| index 685b6c290a49e4e0a7fe28665c79e26c5a25eca5..4b9dcca79c2cf52c46984fa9efcd9d217a6c03e4 100644
|
| --- a/webrtc/modules/congestion_controller/delay_based_bwe.cc
|
| +++ b/webrtc/modules/congestion_controller/delay_based_bwe.cc
|
| @@ -201,6 +201,18 @@ DelayBasedBwe::Result DelayBasedBwe::MaybeUpdateEstimate(
|
| rate_control_.TimeToReduceFurther(now_ms, *acked_bitrate_bps)) {
|
| result.updated = UpdateEstimate(now_ms, acked_bitrate_bps, overusing,
|
| &result.target_bitrate_bps);
|
| + } else if (!acked_bitrate_bps && rate_control_.ValidEstimate() &&
|
| + rate_control_.TimeToReduceFurther(
|
| + now_ms, rate_control_.LatestEstimate() / 2 - 1)) {
|
| + // Overusing before we have a measured acknowledged bitrate. We check
|
| + // TimeToReduceFurther (with a fake acknowledged bitrate) to avoid
|
| + // reducing too often.
|
| + // TODO(tschumim): Improve this and/or the acknowledged bitrate estimator
|
| + // so that we (almost) always have a bitrate estimate.
|
| + rate_control_.SetEstimate(rate_control_.LatestEstimate() / 2, now_ms);
|
| + result.updated = true;
|
| + result.probe = false;
|
| + result.target_bitrate_bps = rate_control_.LatestEstimate();
|
| }
|
| } else {
|
| if (probe_bitrate_bps) {
|
|
|