do the proper large negative check (#2139)

This commit is contained in:
Raja Subramanian
2023-10-10 11:01:49 +05:30
committed by GitHub
parent 31b042ddce
commit 70b60101f4
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -150,7 +150,7 @@ func (r *RTPStatsReceiver) Update(
return
}
}
if gapSN <= cNumSequenceNumbers {
if -gapSN >= cNumSequenceNumbers {
r.logger.Warnw("large sequence number gap negative", nil, "prev", resSN.PreExtendedHighest, "curr", resSN.ExtendedVal, "gap", gapSN)
}
+1 -1
View File
@@ -281,7 +281,7 @@ func (r *RTPStatsSender) Update(
// do not start on a padding only packet
return
}
if gapSN <= cNumSequenceNumbers {
if -gapSN >= cNumSequenceNumbers {
r.logger.Warnw("large sequence number gap negative", nil, "prev", r.extHighestSN, "curr", extSequenceNumber, "gap", gapSN)
}