Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rtcp: avoid bitfields in struct rtcp_hdr #1108

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading