Skip to content

Commit

Permalink
rtp: add payload-type helper
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredh authored and sreimers committed Aug 22, 2021
1 parent 6dac5c9 commit 50bd72d
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 @@ -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;
}

0 comments on commit 50bd72d

Please sign in to comment.