mirror of
https://github.com/livekit/livekit.git
synced 2026-10-23 10:52:46 +00:00
Use extended types for sequence number and time stamp in RTPStats. (#1999)
Reinstating this PR - https://github.com/livekit/livekit/pull/1548 Will use extended types in other places too over time.
This commit is contained in:
1 parent
273defa75f
commit
3c31ae5dc0
5 files changed
+264
-248
No files matched your search
@@ -212,8 +212,8 @@ func TestNewBuffer(t *testing.T) {
|
||||
buf, _ := p.Marshal()
|
||||
_, _ = buff.Write(buf)
|
||||
}
|
||||
require.Equal(t, uint16(1), buff.rtpStats.cycles)
|
||||
require.Equal(t, uint16(2), buff.rtpStats.highestSN)
|
||||
require.Equal(t, uint16(2), buff.rtpStats.sequenceNumber.GetHighest())
|
||||
require.Equal(t, uint32(65536+2), buff.rtpStats.sequenceNumber.GetExtendedHighest())
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user