mirror of
https://github.com/mii443/libdatachannel.git
synced 2025-08-23 15:48:03 +00:00
Removed field sizes
This commit is contained in:
@ -17,16 +17,18 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef WEBRTC_SERVER_RTP_HPP
|
#ifndef RTC_RTP_HPP
|
||||||
#define WEBRTC_SERVER_RTP_HPP
|
#define RTC_RTP_HPP
|
||||||
|
|
||||||
|
#include <rtc/log.hpp>
|
||||||
|
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
#else
|
#else
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#endif
|
#endif
|
||||||
#include <rtc/log.hpp>
|
|
||||||
|
|
||||||
#ifndef htonll
|
#ifndef htonll
|
||||||
#define htonll(x) \
|
#define htonll(x) \
|
||||||
@ -37,6 +39,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace rtc {
|
namespace rtc {
|
||||||
|
|
||||||
typedef uint32_t SSRC;
|
typedef uint32_t SSRC;
|
||||||
|
|
||||||
#pragma pack(push, 1)
|
#pragma pack(push, 1)
|
||||||
@ -377,13 +380,9 @@ struct RTCP_PLI {
|
|||||||
|
|
||||||
struct RTCP_FIR_PART {
|
struct RTCP_FIR_PART {
|
||||||
uint32_t ssrc;
|
uint32_t ssrc;
|
||||||
#if __BYTE_ORDER == __BIG_ENDIAN
|
uint8_t seqNo;
|
||||||
uint32_t seqNo : 8;
|
uint8_t dummy1;
|
||||||
uint32_t : 24;
|
uint16_t dummy2;
|
||||||
#elif __BYTE_ORDER == __LITTLE_ENDIAN
|
|
||||||
uint32_t : 24;
|
|
||||||
uint32_t seqNo : 8;
|
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct RTCP_FIR {
|
struct RTCP_FIR {
|
||||||
|
Reference in New Issue
Block a user