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 96BAC4DEB7 for ; Thu, 5 Jun 2025 13:03:48 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id D602268CC88; Thu, 5 Jun 2025 16:03:44 +0300 (EEST) Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 8E4D968CB2F for ; Thu, 5 Jun 2025 16:03:38 +0300 (EEST) Received: by mail-pj1-f51.google.com with SMTP id 98e67ed59e1d1-311da0bef4aso943230a91.3 for ; Thu, 05 Jun 2025 06:03:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1749128615; x=1749733415; darn=ffmpeg.org; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date:message-id :reply-to; bh=HGrDwyEB2pN7Eh62LWv1Bm60daAiwuhQ8QT29Gsq03c=; b=aaFRcK9s6LvTiPCWyC21PlwlUiOgPxJRMYHo9jsT9BTRVAhSGXxGvJDq1i8OM+nERN HB+uVFuCNJXf/KVpXpwk7cuuDlxML5fgmiDtufqjko1AEiZR09nvh2295RSwt242WvbG miwKrMJaRyzqBd2ApVpA82zneRqjN7xGxdJ56XeSZM+DKP6GbnLSOJSI5h/EsdZ1V/pg +4PQ3pzkBRHVDF02jnVXcz6CrQeAO0FvupEgjf/5kBpfGi8M8X3TVBpTCYLqEC8UoD88 zjfUYeNCwRf6ad0JEYRiPlplZY4lE/ByRGj4KWXa+GaEQ4cYQukrsDsrOoKFtZQN3WOd XSfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749128615; x=1749733415; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HGrDwyEB2pN7Eh62LWv1Bm60daAiwuhQ8QT29Gsq03c=; b=eLv3gSc1SN10BZn1/A7Vcx5SxmKsiB3GVD0DEx9a/+ziE9pNNMoo/awX8uf2TfO4ih VHx0ZNyFV0QsDsxw3d1hn8NC1p6+SVxpEE7iGGoFtw/fxz29VcpSzlG0k0VEVHJZNYXt WN0Mv/3rF04Ly5w9bL1GxxYhK1GJM2UOTKZ5pagQRr2nM1tgYBPwv5/PrOa+djLDE5aj ZAL1PK3weL/+iB02pUxB8sBDuFndSBX6lTz5dxJEuPIOVREaVpa2jQbt23vI4+oI4bdf AaTBAfhBcOtlj8qwX6uYuLWnrTH3tW4WH0dQUXXvpL66+JxmEvCpkpup1JHEvaAVFFVj BsEQ== X-Gm-Message-State: AOJu0YxYqm2cn5XfG3VQgDJfmVT18QTt6C5sSb9fL70W1McsoWjVr7XY /M47B5WGQJvNk2cU0si4Dh+NOr6ZrAcorPBiSfoeGshMYzqSuCPfyh5aj3fLTHkt X-Gm-Gg: ASbGnctHzrpjh2lKEhnKhNw1ib3MlQRGdx3E1bPJUl055u6O+ZHfBrVrcd8IFForI/s GmYNdtf7jSYP64zFOjL2gfGXctIoT/mtzqr+dkuO0vzTozEnrNrmNVIcGrqGCDodqWTcdcvUrY7 2AJXyS+x47sMngIxXKe+IGot9wwrN4fCR12LYs4TIcNICuKjwLGBWi5qfdSLk+0bWgud21jyvxv 0qCtyk9UQZlv+g/DJCL8onimh13BqbaIlPTPCSzSrn9tny5KBI7qmrSEIMH8Hf9hWEaNW7owqfh pAYoHmPBzaqaHnNvx5JRSRUr0uj4qIVcrLFxkUclvbbpQYq8So2QAVy7denXY4PQ X-Google-Smtp-Source: AGHT+IGnwtkyQyj1PHqy3nhlsDGIksobtQkVDNVE1Df4WpoIPqgIt4bASdj4Ignry+UXsU9CkjgRwA== X-Received: by 2002:a17:90a:da87:b0:311:c5d8:ea8b with SMTP id 98e67ed59e1d1-3130cdad971mr8583996a91.25.1749128615278; Thu, 05 Jun 2025 06:03:35 -0700 (PDT) Received: from smtpclient.apple ([23.247.137.216]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3133190236fsm1235461a91.19.2025.06.05.06.03.34 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Jun 2025 06:03:35 -0700 (PDT) From: Jack Lau Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.600.51.1.1\)) Date: Thu, 5 Jun 2025 21:03:21 +0800 References: To: FFmpeg development discussions and patches In-Reply-To: Message-Id: <0C2F52FB-F81E-4A61-A2AB-F91C62BF8926@gmail.com> X-Mailer: Apple Mail (2.3826.600.51.1.1) Subject: Re: [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 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: > On Jun 5, 2025, at 17:41, Zhao Zhili wrote: > > 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 LGTM Thanks Jack > > _______________________________________________ > 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". _______________________________________________ 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".