Set gapSN when initing. (#2893)
This commit is contained in:
@@ -255,9 +255,9 @@ func (r *RTPStatsReceiver) Update(
|
|||||||
"forcing sequence number rollover", nil,
|
"forcing sequence number rollover", nil,
|
||||||
getLoggingFields()...,
|
getLoggingFields()...,
|
||||||
)
|
)
|
||||||
gapSN = int64(resSN.ExtendedVal - resSN.PreExtendedHighest)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
gapSN = int64(resSN.ExtendedVal - resSN.PreExtendedHighest)
|
||||||
|
|
||||||
pktSize := uint64(hdrSize + payloadSize + paddingSize)
|
pktSize := uint64(hdrSize + payloadSize + paddingSize)
|
||||||
if gapSN <= 0 { // duplicate OR out-of-order
|
if gapSN <= 0 { // duplicate OR out-of-order
|
||||||
@@ -278,8 +278,6 @@ func (r *RTPStatsReceiver) Update(
|
|||||||
}
|
}
|
||||||
|
|
||||||
flowState.IsOutOfOrder = true
|
flowState.IsOutOfOrder = true
|
||||||
flowState.ExtSequenceNumber = resSN.ExtendedVal
|
|
||||||
flowState.ExtTimestamp = resTS.ExtendedVal
|
|
||||||
|
|
||||||
if !flowState.IsDuplicate && -gapSN >= cSequenceNumberLargeJumpThreshold {
|
if !flowState.IsDuplicate && -gapSN >= cSequenceNumberLargeJumpThreshold {
|
||||||
r.largeJumpNegativeCount++
|
r.largeJumpNegativeCount++
|
||||||
@@ -331,9 +329,9 @@ func (r *RTPStatsReceiver) Update(
|
|||||||
flowState.LossStartInclusive = resSN.PreExtendedHighest + 1
|
flowState.LossStartInclusive = resSN.PreExtendedHighest + 1
|
||||||
flowState.LossEndExclusive = resSN.ExtendedVal
|
flowState.LossEndExclusive = resSN.ExtendedVal
|
||||||
}
|
}
|
||||||
flowState.ExtSequenceNumber = resSN.ExtendedVal
|
|
||||||
flowState.ExtTimestamp = resTS.ExtendedVal
|
|
||||||
}
|
}
|
||||||
|
flowState.ExtSequenceNumber = resSN.ExtendedVal
|
||||||
|
flowState.ExtTimestamp = resTS.ExtendedVal
|
||||||
|
|
||||||
if !flowState.IsDuplicate {
|
if !flowState.IsDuplicate {
|
||||||
if payloadSize == 0 {
|
if payloadSize == 0 {
|
||||||
|
|||||||
Reference in New Issue
Block a user