Skip to content

Commit

Permalink
rtp: add function to calc sequence number diff (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredh authored Jun 3, 2022
1 parent 7cd36fc commit 1bb0d29
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/re_rtp.h
Original file line number Diff line number Diff line change
Expand Up @@ -254,3 +254,9 @@ static inline bool rtp_pt_is_rtcp(uint8_t pt)
{
return 64 <= pt && pt <= 95;
}


static inline int16_t rtp_seq_diff(uint16_t x, uint16_t y)
{
return (int16_t)(y - x);
}

0 comments on commit 1bb0d29

Please sign in to comment.