37 #ifndef RTCPBYEPACKET_H
39 #define RTCPBYEPACKET_H
41 #include "rtpconfig.h"
44 #if ! (defined(WIN32) || defined (_WIN32_WCE))
45 #include <netinet/in.h>
68 uint32_t
GetSSRC(
int index)
const;
91 RTCPCommonHeader *hdr = (RTCPCommonHeader *)data;
92 return (
int)(hdr->count);
99 uint32_t *ssrc = (uint32_t *)(data+
sizeof(RTCPCommonHeader)+
sizeof(uint32_t)*index);
107 if (reasonoffset == 0)
116 if (reasonoffset == 0)
118 uint8_t *reasonlen = (data+reasonoffset);
119 return (
size_t)(*reasonlen);
126 if (reasonoffset == 0)
128 uint8_t *reasonlen = (data+reasonoffset);
129 if ((*reasonlen) == 0)
131 return (data+reasonoffset+1);
134 #endif // RTCPBYEPACKET_H