Fix initialisation of maxLossBitrate.

This commit is contained in:
Juliusz Chroboczek
2020-06-01 01:48:07 +02:00
parent dcb2111181
commit 4d2bd6e473
+1 -1
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
}