diff --git a/include/re_rtp.h b/include/re_rtp.h index 3e5acb1fa..715e9afa3 100644 --- a/include/re_rtp.h +++ b/include/re_rtp.h @@ -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); +}