From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 9B21E4CD69 for ; Thu, 5 Jun 2025 09:41:54 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id E4B6468CA20; Thu, 5 Jun 2025 12:41:49 +0300 (EEST) Received: from out162-62-57-137.mail.qq.com (out162-62-57-137.mail.qq.com [162.62.57.137]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 191B568C5BF for ; Thu, 5 Jun 2025 12:41:41 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1749116494; bh=INuqiaNnAQQV6VuYdTfVyN9VD/iVbwVextdvB+nWcKE=; h=From:To:Cc:Subject:Date; b=TBrKo3D02yAlxeLWkXL+0dUqVBxQbWhuROJJyuc/Nl3TZqiEoQY0K2ZNORRIZyPtL TcYVvuaNqQ9owsnn9CGuBuqYJ78xIBEjuW/JW2y/Rmq+fxAr9Bwh1p7DUKbBi2HOFq JwYO2IeOxYuFOQRhw0IWDcU3QOKc1fGvujANuif0= Received: from localhost.localdomain ([119.147.10.242]) by newxmesmtplogicsvrszb20-0.qq.com (NewEsmtp) with SMTP id A613F2D3; Thu, 05 Jun 2025 17:41:33 +0800 X-QQ-mid: xmsmtpt1749116493t58c47q2z Message-ID: X-QQ-XMAILINFO: NyTsQ4JOu2J2PogcHy/VcWi6CdCZPQgrM0bCPNj93ckTUXrt3YOuD+1JuJ+DB3 Ji7nM87pYaRwgSeK+OkKjElB3GWgYLqmprekuLh7JbxkG0M1ohQ1AjPFbhtlfF31CXZCVN+KmVWE BYk3nz0ReudxLzk3+0wuyR1Ccxw1sCbzae6pp5JdWQ/7p4ArItGA4AGd6sZ4dZzrunL6woA0fU1+ pc1RrKtewESgciBcxRnBxFalCX8ea9XseRmjp5y8ITVH7a4+XcEM51yjfF6+qtfVzEri8vBtpBKz z2Gqbsr572U0LUTsfdIlavpW+1rLU1J1opoder6mOeMECH0Fequ5ewGTlIi7wVIhWyA5IhSZ6AL5 kUCoPyVW5ZnGuj3wIMJ810bQZFAOZ0ayKid+WTHtSUcCrAHXZK634TV4oLyUL2Tds4lQqgjeq3zT 9NLSVVUvVB0syvgriU42eaRGYNvrrQVXbIKlzIKERmOwbMLDhqiR3R8yeUzHpMgZs5bzatpCf/02 vNWfRMw8dj+IqiIRv60o+XL0QxUQlL01VA2GaL98PrsB6RSodRkBAnwMkmBx910GSihjz9KOboiD p0aXPSLB5BKE1QNpQ9gr0WZqHwyy9XLiRvJS+KFEA3ZIFR41p7Tz5D3qGC0gTKgbuzlzRrYTuqwl OMk5Tp6IBCaPm4FC+BwWaG3OAgJsCmsTuFm4s6kCe5sz7Toxzy9LCluCXKoh3c9FhW0iFDLyg3fu c6droTqbApDWoqT5ea7+YJrNNUy4qpWMtH4CXsT2Q9PAsO8cjzc5pb4Teu/u3byY1VgDQPzh5ZZt CLLZdspUXnsQBdbfBLOZls1A4hb8/swVmBLcCHZtt3p4v8+79iCsh6Cxu1nOcMRR0OzlLgISSe0D boCDhh0wxmMR6Aie5nViHMEBbo165zoGtEg4viRHj1Tklr2kB4s1zPlFUagSBwSBvmd2t2Bs+x3O Tm96LuFMgfxbKppiC1z3Xb2yenzlMu9GM3BIH5nW/1ocTQbt93TkCn1NV/ggGRMXzKa8+cw+g= X-QQ-XMRINFO: OD9hHCdaPRBwq3WW+NvGbIU= From: Zhao Zhili To: ffmpeg-devel@ffmpeg.org Date: Thu, 5 Jun 2025 17:41:32 +0800 X-OQ-MSGID: <20250605094132.418347-1-quinkblack@foxmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 2/2] avformat/whip: Constify arguments in is_rtp_rtcp/is_rtcp X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Zhao Zhili Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: From: Zhao Zhili Fix warning of -Wincompatible-pointer-types-discards-qualifiers. --- libavformat/whip.c | 4 ++-- 1 file 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; } -- 2.25.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".