mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
RTC: Add utest for srs_rtp_seq_distance
This commit is contained in:
parent
be1b0bf941
commit
3f5ab8dc63
13 changed files with 206 additions and 38 deletions
|
@ -48,7 +48,6 @@ enum SrsRtcpType {
|
|||
SrsRtcpType_xr = 207,
|
||||
};
|
||||
|
||||
|
||||
// RTCP Header, @see http://tools.ietf.org/html/rfc3550#section-6.1
|
||||
struct SrsRtcpHeader
|
||||
{
|
||||
|
|
|
@ -59,6 +59,7 @@ class SrsRtpFUAPayload2;
|
|||
class SrsSharedPtrMessage;
|
||||
|
||||
// TODO: FIXME: Merge with srs_rtp_seq_distance
|
||||
// @see https://mp.weixin.qq.com/s/JZTInmlB9FUWXBQw_7NYqg
|
||||
bool SrsSeqIsNewer(uint16_t current_sn, uint16_t last_sn);
|
||||
bool SrsSeqIsRoolback(uint16_t current_sn, uint16_t last_sn);
|
||||
int32_t SrsSeqDistance(uint16_t current_sn, uint16_t last_sn);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue