* is not identical)
*/
+#ifdef _MSC_VER
+#pragma pack(push, r1, 1)
+#endif
+
#ifndef WORDS_BIGENDIAN
typedef struct {
unsigned version : 2; /* protocol version */
unsigned pt : 7; /* payload type */
unsigned m : 1; /* marker bit */
- uint16_t seq; /* sequence number */
- uint32_t ts; /* timestamp */
+ unsigned seq : 16; /* sequence number */
+ unsigned ts : 32; /* timestamp */
uint32_t ssrc; /* synchronization source */
} srtp_hdr_t;
unsigned cc : 4; /* CSRC count */
unsigned m : 1; /* marker bit */
unsigned pt : 7; /* payload type */
- uint16_t seq; /* sequence number */
- uint32_t ts; /* timestamp */
+ unsigned seq: 16; /* sequence number */
+ unsigned ts : 32; /* timestamp */
uint32_t ssrc; /* synchronization source */
} srtp_hdr_t;
unsigned p : 1; /* padding flag */
unsigned version : 2; /* protocol version */
unsigned pt : 8; /* payload type */
- uint16_t len; /* length */
+ unsigned len : 16; /* length */
uint32_t ssrc; /* synchronization source */
} srtcp_hdr_t;
unsigned p : 1; /* padding flag */
unsigned rc : 5; /* reception report count */
unsigned pt : 8; /* payload type */
- uint16_t len; /* length */
+ unsigned len : 16; /* length */
uint32_t ssrc; /* synchronization source */
} srtcp_hdr_t;
#endif
+#ifdef _MSC_VER
+#pragma pack(pop, r1)
+#endif
+
/*
* srtp_handle_event(srtp, srtm, evnt) calls the event handling
* function, if there is one.