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>
release/7.1
Michael Niedermayer 6 months ago
parent 18757b26bd
commit 348c3a7ffe
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64
  1. 2
      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;

Loading…
Cancel
Save