From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id DA3394AF8A for ; Sat, 25 May 2024 11:18:33 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 45C8768D52C; Sat, 25 May 2024 14:18:25 +0300 (EEST) Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B877D68CF47 for ; Sat, 25 May 2024 14:18:16 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id E89AD1BF204 for ; Sat, 25 May 2024 11:18:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1716635896; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=P+s/sQL4sCEtc1AlCehOR+3/301kpAo2iUSEthwB4oI=; b=gzWYsUd/mEzRdChjcMGx+o8N/NYNprDYKR6HFfEFy7DHOeyRbgFsPdAkdEugwk2/qoAg8O Rze2yVdoiv75moH/gK689BENl6c21Eub/epatws0XcDV347TVn4BNAp0iV5Y1P25+WVAUZ a+Glj8nZvWGetrfC5Z2vbMEMVJ0JhBJTfwct/ehL0hz81aHjMB3FjTDt3nQ7HUF+CZ7iBm XVok2bRGLtu4DNB3Vty7XP1hcmFF+Wmqd0EEVNBbPVuCjonoYjN1xHZGbchQpbeG6pVZvd DJOS6N+aRE3UT+EcMPqZVjykbvPquA39G8HWGQBSMPtW0YkJAWHzgwaG9j5ucw== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Sat, 25 May 2024 13:18:13 +0200 Message-ID: <20240525111814.2587729-2-michael@niedermayer.cc> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240525111814.2587729-1-michael@niedermayer.cc> References: <20240525111814.2587729-1-michael@niedermayer.cc> MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 2/3] avformat/fwse: Remove always false expression 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: Fixes: CID1460758 Operands don't affect result Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer --- libavformat/fwse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/fwse.c b/libavformat/fwse.c index 6c1103da146..dc4750d946a 100644 --- a/libavformat/fwse.c +++ b/libavformat/fwse.c @@ -67,7 +67,7 @@ static int fwse_read_header(AVFormatContext *s) av_channel_layout_default(&par->ch_layout, channels); st->duration = avio_rl32(pb); par->sample_rate = avio_rl32(pb); - if (par->sample_rate <= 0 || par->sample_rate > INT_MAX) + if (par->sample_rate <= 0) return AVERROR_INVALIDDATA; par->block_align = 1; -- 2.45.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".