Upgrade pion/rtcp, use nack.Range instead of PacketList.

This commit is contained in:
Juliusz Chroboczek
2020-12-03 23:46:19 +01:00
parent f0cbe9c0c1
commit 120bfc92c7
4 changed files with 12 additions and 10 deletions
+3 -4
View File
@@ -350,15 +350,14 @@ func TestBitmapPacket(t *testing.T) {
}
p := rtcp.NackPair{first, rtcp.PacketBitmap(bitmap)}
pl := p.PacketList()
for _, s := range pl {
p.Range(func (s uint16) bool {
if s < 42 || s >= 42+64 {
if (value & (1 << (s - 42))) != 0 {
t.Errorf("Bit %v unexpectedly set", s-42)
}
}
}
return true
})
}
func BenchmarkCachePutGet(b *testing.B) {