diff --git a/include/rtc/rtp.hpp b/include/rtc/rtp.hpp index 348cb04..2d882ca 100644 --- a/include/rtc/rtp.hpp +++ b/include/rtc/rtp.hpp @@ -17,16 +17,18 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef WEBRTC_SERVER_RTP_HPP -#define WEBRTC_SERVER_RTP_HPP +#ifndef RTC_RTP_HPP +#define RTC_RTP_HPP + +#include #include + #ifdef _WIN32 #include #else #include #endif -#include #ifndef htonll #define htonll(x) \ @@ -37,6 +39,7 @@ #endif namespace rtc { + typedef uint32_t SSRC; #pragma pack(push, 1) @@ -377,13 +380,9 @@ struct RTCP_PLI { struct RTCP_FIR_PART { uint32_t ssrc; -#if __BYTE_ORDER == __BIG_ENDIAN - uint32_t seqNo : 8; - uint32_t : 24; -#elif __BYTE_ORDER == __LITTLE_ENDIAN - uint32_t : 24; - uint32_t seqNo : 8; -#endif + uint8_t seqNo; + uint8_t dummy1; + uint16_t dummy2; }; struct RTCP_FIR {