From 4d2bd6e473a75c47d7378112ada1b288bd4ac013 Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Mon, 1 Jun 2020 01:48:07 +0200 Subject: [PATCH] Fix initialisation of maxLossBitrate. --- webclient.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webclient.go b/webclient.go index fe01a17..15969ed 100644 --- a/webclient.go +++ b/webclient.go @@ -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 }