[FFmpeg-cvslog] avformat/fwse: Remove always false expression

Michael Niedermayer git at videolan.org
Fri Jun 14 22:20:38 EEST 2024


ffmpeg | branch: release/4.3 | Michael Niedermayer <michael at niedermayer.cc> | Sat May 25 13:18:13 2024 +0200| [4546c600c639a2a75b2da5d6e39a8ee23ab693fc] | committer: Michael Niedermayer

avformat/fwse: Remove always false expression

Fixes: CID1460758 Operands don't affect result

Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit 348c3a7ffe0c3aecf35f1a26a9f321a4e608dab7)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4546c600c639a2a75b2da5d6e39a8ee23ab693fc
---

 libavformat/fwse.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/fwse.c b/libavformat/fwse.c
index 00e2e13b11..2fecd68e56 100644
--- a/libavformat/fwse.c
+++ b/libavformat/fwse.c
@@ -67,7 +67,7 @@ static int fwse_read_header(AVFormatContext *s)
         par->channel_layout = AV_CH_LAYOUT_STEREO;
     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;



More information about the ffmpeg-cvslog mailing list