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>
This commit is contained in:
Michael Niedermayer 2024-05-25 13:18:13 +02:00
parent 18757b26bd
commit 348c3a7ffe
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64
1 changed files with 1 additions and 1 deletions

View File

@ -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;