|
|
|
|
@ -6,6 +6,16 @@
|
|
|
|
|
#include "compat.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define RTCP_PT_SR 200 /* sender report */
|
|
|
|
|
#define RTCP_PT_RR 201 /* receiver report */
|
|
|
|
|
#define RTCP_PT_SDES 202 /* source description */
|
|
|
|
|
#define RTCP_PT_BYE 203 /* bye */
|
|
|
|
|
#define RTCP_PT_APP 204 /* application specific */
|
|
|
|
|
#define RTCP_PT_RTPFB 205 /* transport layer feedback message (RTP/AVPF) */
|
|
|
|
|
#define RTCP_PT_PSFB 206 /* payload-specific feedback message (RTP/AVPF) */
|
|
|
|
|
#define RTCP_PT_XR 207
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct rtcp_header {
|
|
|
|
|
#if G_BYTE_ORDER == G_BIG_ENDIAN
|
|
|
|
|
unsigned version:2; /**< packet type */
|
|
|
|
|
@ -44,6 +54,9 @@ INLINE bool rtcp_demux_is_rtcp(const str *s) {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
INLINE unsigned char rtcp_pt(const str *s) {
|
|
|
|
|
struct rtcp_packet *rtcp = (void *) s->s;
|
|
|
|
|
return rtcp->header.pt;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|