Skip to content

Commit

Permalink
rtcp: avoid bitfields in struct rtcp_hdr
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredh committed Apr 27, 2024
1 parent e8822ac commit c2c4234
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/re_rtp.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ struct rtcp_sdes_item {
struct rtcp_msg {
/** RTCP Header */
struct rtcp_hdr {
unsigned int version:2; /**< Protocol version */
unsigned int p:1; /**< Padding flag */
unsigned int count:5; /**< Varies by packet type */
unsigned int pt:8; /**< RTCP packet type */
uint8_t version; /**< Protocol version */
bool p; /**< Padding flag */
uint8_t count; /**< Varies by packet type */
enum rtcp_type pt; /**< RTCP packet type */
uint16_t length; /**< Packet length in words */
} hdr;
union {
Expand Down

0 comments on commit c2c4234

Please sign in to comment.