Upgrade pion/rtcp, use nack.Range instead of PacketList.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user