Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Trust delay based BWE #17

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion modules/bitrate_controller/send_side_bandwidth_estimation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,9 @@ void SendSideBandwidthEstimation::CapBitrateToThresholds(int64_t now_ms,
if (bwe_incoming_ > 0 && bitrate_bps > bwe_incoming_) {
bitrate_bps = bwe_incoming_;
}
if (delay_based_bitrate_bps_ > 0 && bitrate_bps > delay_based_bitrate_bps_) {
if (delay_weight == 100) {
bitrate_bps = delay_based_bitrate_bps_;
} else if (delay_based_bitrate_bps_ > 0 && bitrate_bps > delay_based_bitrate_bps_) {
if (delay_weight <= 100 && delay_weight >= 0)
bitrate_bps = bitrate_bps * lost_fraction +
delay_based_bitrate_bps_ * delay_fraction;
Expand Down