Commit 5ad02442 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Allow the loss-based congestion controller to yield higher values.

parent 0205695b
......@@ -930,7 +930,7 @@ func (track *rtpDownTrack) updateRate(loss uint8, now uint64) {
// bottleneck
r, _ := track.rate.Estimate()
actual := 8 * uint64(r)
if actual >= (rate*7)/8 {
if actual >= (rate*3)/4 {
// loss < 0.02, multiply by 1.05
rate = rate * 269 / 256
if rate > maxLossRate {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment