Fixes: CID1460758 Operands don't affect result
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <[email protected]>
---
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
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".