mirror of
https://github.com/livekit/livekit.git
synced 2026-10-24 04:13:11 +00:00
Fix off by one packets expected (#529)
This commit is contained in:
1 parent
4fb5076807
commit
64f82a6a73
1 file changed
+1
-1
@@ -682,7 +682,7 @@ func (r *RTPStats) ToProto() *livekit.RTPStats {
|
||||
return nil
|
||||
}
|
||||
|
||||
packetsExpected := r.getExtHighestSN() - r.extStartSN
|
||||
packetsExpected := r.getExtHighestSN() - r.extStartSN + 1
|
||||
|
||||
packets := packetsExpected
|
||||
if r.packetsLost < packets {
|
||||
|
||||
Reference in new issue
Block a user