From c2c42349785855a2b3e078cd846e7603ad31f77c Mon Sep 17 00:00:00 2001 From: "Alfred E. Heggestad" <114750+alfredh@users.noreply.github.com> Date: Sat, 27 Apr 2024 13:31:04 +0200 Subject: [PATCH] rtcp: avoid bitfields in struct rtcp_hdr --- include/re_rtp.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/re_rtp.h b/include/re_rtp.h index 05ae35a0a..fd3a4faca 100644 --- a/include/re_rtp.h +++ b/include/re_rtp.h @@ -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 {