mirror of
https://github.com/jech/galene.git
synced 2024-11-22 16:45:58 +01:00
Fix initialisation of maxLossBitrate.
This commit is contained in:
parent
dcb2111181
commit
4d2bd6e473
1 changed files with 1 additions and 1 deletions
|
@ -836,7 +836,7 @@ const (
|
||||||
|
|
||||||
func (track *rtpDownTrack) updateRate(loss uint8, now uint64) {
|
func (track *rtpDownTrack) updateRate(loss uint8, now uint64) {
|
||||||
rate := track.maxLossBitrate.Get(now)
|
rate := track.maxLossBitrate.Get(now)
|
||||||
if rate > maxLossRate {
|
if rate < minLossRate || rate > maxLossRate {
|
||||||
// no recent feedback, reset
|
// no recent feedback, reset
|
||||||
rate = initLossRate
|
rate = initLossRate
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue