History

avformat/whip: Constify arguments in is_rtp_rtcp/is_rtcp

Fix warning of -Wincompatible-pointer-types-discards-qualifiers.

Zhao Zhili committed 1 year ago

Commit 153cdf31 parent 1af68811 file · +2 −2Browse files

Unified · Split

libavformat/whip.c+2−2
@@ -1115,13 +1115,13 @@ static int ice_is_binding_response(uint8_t *b, int size) · 1114 unmodified lines
11151115 * The RTCP packet header is similar to RTP,
11161116 * see https://www.rfc-editor.org/rfc/rfc3550#section-6.4.1
11171117 */
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)
11191119 {
11201120 return size >= WHIP_RTP_HEADER_SIZE && (b[0] & 0xC0) == 0x80;
11211121 }
11221122
11231123 /* 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)
11251125 {
11261126 return size >= WHIP_RTP_HEADER_SIZE && b[1] >= WHIP_RTCP_PT_START && b[1] <= WHIP_RTCP_PT_END;
11271127 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t