diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2024-05-25 13:18:13 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2024-06-02 22:29:21 +0200 |
commit | 348c3a7ffe0c3aecf35f1a26a9f321a4e608dab7 (patch) | |
tree | 0f06ab4c0455655bc8a3b411c56b2e98f8e52f2f /libavformat | |
parent | 18757b26bd4cf8e2543d29c0efcf7c4c0c7c667f (diff) | |
download | ffmpeg-348c3a7ffe0c3aecf35f1a26a9f321a4e608dab7.tar.gz |
avformat/fwse: Remove always false expression
Fixes: CID1460758 Operands don't affect result
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/fwse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/fwse.c b/libavformat/fwse.c index 6c1103da14..dc4750d946 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; |