Fix off by one packets expected (#529)

This commit is contained in:
Raja Subramanian
2022-03-18 10:03:09 +05:30
committed by GitHub
parent 4fb5076807
commit 64f82a6a73

View File

@@ -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 {