diff --git a/include/re_rtp.h b/include/re_rtp.h index 9b63ecfac..c4846a77e 100644 --- a/include/re_rtp.h +++ b/include/re_rtp.h @@ -238,3 +238,9 @@ int rtcp_msg_print(struct re_printf *pf, const struct rtcp_msg *msg); int rtcp_sdes_encode(struct mbuf *mb, uint32_t src, uint32_t itemc, ...); const char *rtcp_type_name(enum rtcp_type type); const char *rtcp_sdes_name(enum rtcp_sdes_type sdes); + + +static inline bool rtp_pt_is_rtcp(uint8_t pt) +{ + return 64 <= pt && pt <= 95; +}