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

Unified Diff: webrtc/modules/pacing/paced_sender.cc

Issue 1151603008: Make the BWE threshold adaptive. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Redid the experiment settings initialization slightly and set the default threshold back to 12.5. Created 5 years, 6 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/pacing/paced_sender.cc
diff --git a/webrtc/modules/pacing/paced_sender.cc b/webrtc/modules/pacing/paced_sender.cc
index f25134156b4ee12845021c110f8f7618930760c2..590ba04f44c239d8f51d196cf96af066423b21d6 100644
--- a/webrtc/modules/pacing/paced_sender.cc
+++ b/webrtc/modules/pacing/paced_sender.cc
@@ -175,6 +175,7 @@ class IntervalBudget {
void set_target_rate_kbps(int target_rate_kbps) {
target_rate_kbps_ = target_rate_kbps;
+ bytes_remaining_ = std::max(-500 * target_rate_kbps_ / 8, bytes_remaining_);
pbos-webrtc 2015/07/06 10:01:40 Named constants please.
stefan-webrtc 2015/07/06 10:54:25 Done.
}
void IncreaseBudget(int64_t delta_time_ms) {

Powered by Google App Engine
This is Rietveld 408576698