diff options
author | Zhao Zhili <zhilizhao@tencent.com> | 2025-06-05 17:41:32 +0800 |
---|---|---|
committer | Zhao Zhili <zhilizhao@tencent.com> | 2025-06-07 15:58:21 +0800 |
commit | 153cdf3142ce2ac8b9dd7701974409d79ee1f165 (patch) | |
tree | 9ddde3c894decb50dcbac2052d5d40eacfcef1aa | |
parent | 1af6881ba1230443477c913725ff63c9c5d7f47b (diff) | |
download | ffmpeg-153cdf3142ce2ac8b9dd7701974409d79ee1f165.tar.gz |
avformat/whip: Constify arguments in is_rtp_rtcp/is_rtcp
Fix warning of -Wincompatible-pointer-types-discards-qualifiers.
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
-rw-r--r-- | libavformat/whip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/whip.c b/libavformat/whip.c index 0671e23635..710f24fc5a 100644 --- a/libavformat/whip.c +++ b/libavformat/whip.c @@ -1115,13 +1115,13 @@ static int ice_is_binding_response(uint8_t *b, int size) * The RTCP packet header is similar to RTP, * see https://www.rfc-editor.org/rfc/rfc3550#section-6.4.1 */ -static int media_is_rtp_rtcp(uint8_t *b, int size) +static int media_is_rtp_rtcp(const uint8_t *b, int size) { return size >= WHIP_RTP_HEADER_SIZE && (b[0] & 0xC0) == 0x80; } /* Whether the packet is RTCP. */ -static int media_is_rtcp(uint8_t *b, int size) +static int media_is_rtcp(const uint8_t *b, int size) { return size >= WHIP_RTP_HEADER_SIZE && b[1] >= WHIP_RTCP_PT_START && b[1] <= WHIP_RTCP_PT_END; } |