1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-12-22 23:35:46 +01:00

Fix initialisation of maxLossBitrate.

This commit is contained in:
Juliusz Chroboczek 2020-06-01 01:48:07 +02:00
parent dcb2111181
commit 4d2bd6e473

View file

@ -836,7 +836,7 @@ const (
func (track *rtpDownTrack) updateRate(loss uint8, now uint64) {
rate := track.maxLossBitrate.Get(now)
if rate > maxLossRate {
if rate < minLossRate || rate > maxLossRate {
// no recent feedback, reset
rate = initLossRate
}