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:
Raja Subramanian authored and GitHub committed 2023-08-26 22:31:43 +05:30
1 parent 273defa75f
commit 3c31ae5dc0
5 files changed
+264 -248

No files matched your search

+2 -2
View File
@@ -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())
})
}
}