Fix warning of -Wincompatible-pointer-types-discards-qualifiers.
Unified · Split
| @@ -1115,13 +1115,13 @@ static int ice_is_binding_response(uint8_t *b, int size) · 1114 unmodified lines | |||
| 1115 | * The RTCP packet header is similar to RTP, | 1115 | * The RTCP packet header is similar to RTP, |
| 1116 | * see https://www.rfc-editor.org/rfc/rfc3550#section-6.4.1 | 1116 | * see https://www.rfc-editor.org/rfc/rfc3550#section-6.4.1 |
| 1117 | */ | 1117 | */ |
| 1118 | static int media_is_rtp_rtcp(uint8_t *b, int size) | 1118 | static int media_is_rtp_rtcp(const uint8_t *b, int size) |
| 1119 | { | 1119 | { |
| 1120 | return size >= WHIP_RTP_HEADER_SIZE && (b[0] & 0xC0) == 0x80; | 1120 | return size >= WHIP_RTP_HEADER_SIZE && (b[0] & 0xC0) == 0x80; |
| 1121 | } | 1121 | } |
| 1122 | 1122 | ||
| 1123 | /* Whether the packet is RTCP. */ | 1123 | /* Whether the packet is RTCP. */ |
| 1124 | static int media_is_rtcp(uint8_t *b, int size) | 1124 | static int media_is_rtcp(const uint8_t *b, int size) |
| 1125 | { | 1125 | { |
| 1126 | return size >= WHIP_RTP_HEADER_SIZE && b[1] >= WHIP_RTCP_PT_START && b[1] <= WHIP_RTCP_PT_END; | 1126 | return size >= WHIP_RTP_HEADER_SIZE && b[1] >= WHIP_RTCP_PT_START && b[1] <= WHIP_RTCP_PT_END; |
| 1127 | } | 1127 | } |