1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-10 02:35:58 +01:00

Send recovery if we're very mildly congested.

This commit is contained in:
Juliusz Chroboczek 2020-05-21 13:20:51 +02:00
parent 0e1f3cafea
commit 9fde029912

View file

@ -808,7 +808,7 @@ func rtcpDownListener(conn *downConnection, track *downTrack, s *webrtc.RTPSende
mono.Microseconds(), mono.Microseconds(),
) )
bitrate := track.rate.Estimate() bitrate := track.rate.Estimate()
if uint64(bitrate) < maxBitrate { if uint64(bitrate)*7/8 < maxBitrate {
sendRecovery(p, track) sendRecovery(p, track)
} }
} }