1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-22 08:35:57 +01:00

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

This commit is contained in:
Juliusz Chroboczek 2021-05-12 17:06:26 +02:00
parent 0205695bd7
commit 5ad0244267

View file

@ -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 {