1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Merge branch '4.0release' into develop

This commit is contained in:
winlin 2022-09-03 18:13:11 +08:00
commit 79358673ef
6 changed files with 120 additions and 4 deletions

View file

@ -61,6 +61,10 @@ inline int16_t srs_rtp_seq_distance(const uint16_t& prev_value, const uint16_t&
{
return (int16_t)(value - prev_value);
}
inline int32_t srs_rtp_ts_distance(const uint32_t& prev_value, const uint32_t& value)
{
return (int32_t)(value - prev_value);
}
// For map to compare the sequence of RTP.
struct SrsSeqCompareLess {