From 5ad02442673d755c71b24e81e01379211a7baa15 Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Wed, 12 May 2021 17:06:26 +0200 Subject: [PATCH] Allow the loss-based congestion controller to yield higher values. --- rtpconn/rtpconn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtpconn/rtpconn.go b/rtpconn/rtpconn.go index b4ca691..f93fc85 100644 --- a/rtpconn/rtpconn.go +++ b/rtpconn/rtpconn.go @@ -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 {