Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(491)

Unified Diff: webrtc/modules/congestion_controller/congestion_controller.cc

Issue 1922483002: De-flake VideoSendStreamTest.ReconfigureBitratesSetsEncoderBitratesCorrectly (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/congestion_controller/congestion_controller.cc
diff --git a/webrtc/modules/congestion_controller/congestion_controller.cc b/webrtc/modules/congestion_controller/congestion_controller.cc
index caf39f07d25716457aa7e7a20544b083adf06225..a54ba56c2a12cdebc19db819b181920ba9640d96 100644
--- a/webrtc/modules/congestion_controller/congestion_controller.cc
+++ b/webrtc/modules/congestion_controller/congestion_controller.cc
@@ -178,9 +178,12 @@ void CongestionController::SetBweBitrates(int min_bitrate_bps,
max_bitrate_bps = std::max(min_bitrate_bps, max_bitrate_bps);
if (start_bitrate_bps > 0) {
start_bitrate_bps = std::max(min_bitrate_bps, start_bitrate_bps);
pbos-webrtc 2016/04/25 15:25:26 I think this std::max should be done inside SetMin
philipel 2016/04/25 15:53:01 The constraint is that min <= start <= max, so if
- bitrate_controller_->SetStartBitrate(start_bitrate_bps);
+ bitrate_controller_->SetMinMaxStartBitrate(start_bitrate_bps,
stefan-webrtc 2016/04/26 11:10:43 Allow start_bitrate_bps = -1 to mean "don't change
philipel 2016/04/28 10:42:57 Done.
+ min_bitrate_bps,
+ max_bitrate_bps);
+ } else {
+ bitrate_controller_->SetMinMaxBitrate(min_bitrate_bps, max_bitrate_bps);
}
- bitrate_controller_->SetMinMaxBitrate(min_bitrate_bps, max_bitrate_bps);
if (remote_bitrate_estimator_)
remote_bitrate_estimator_->SetMinBitrate(min_bitrate_bps);
min_bitrate_bps_ = min_bitrate_bps;

Powered by Google App Engine
This is Rietveld 408576698