Process RTX packets for TWCC (#406)
The SRTP replay detection was disabled recently. But, they were effectively getting dropped in `sfu.bucket`. Doing two things with RTX packets in this PR 1. Update stats - add to packet count and bytes 2. Process header extension - to process TWCC
This commit is contained in:
@@ -33,8 +33,8 @@ func (b *Bucket) AddPacket(pkt []byte) ([]byte, error) {
|
||||
b.init = true
|
||||
}
|
||||
diff := sn - b.headSN
|
||||
if diff > (1 << 15) {
|
||||
// out-of-order
|
||||
if diff == 0 || diff > (1<<15) {
|
||||
// duplicate of lsat packet or out-of-order
|
||||
return b.set(sn, pkt)
|
||||
}
|
||||
b.headSN = sn
|
||||
|
||||
Reference in New Issue
Block a user