Discount out-of-order packets in downstream score. (#1831)

* Discount out-of-order packets in downstream score.

More notes inline.

* correct comment

* clean up comment
This commit is contained in:
Raja Subramanian
2023-06-27 17:44:53 +05:30
committed by GitHub
parent 5b975af55f
commit cea41e4189
3 changed files with 50 additions and 16 deletions
@@ -108,6 +108,7 @@ func (cs *ConnectionStats) updateScoreWithAggregate(agg *buffer.RTPDeltaInfo, at
stat.packetsExpected = agg.Packets + agg.PacketsPadding
stat.packetsLost = agg.PacketsLost
stat.packetsMissing = agg.PacketsMissing
stat.packetsOutOfOrder = agg.PacketsOutOfOrder
stat.bytes = agg.Bytes - agg.HeaderBytes // only use media payload size
stat.rttMax = agg.RttMax
stat.jitterMax = agg.JitterMax