mirror of https://git.ffmpeg.org/ffmpeg.git
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:
parent
18757b26bd
commit
348c3a7ffe
|
@ -67,7 +67,7 @@ static int fwse_read_header(AVFormatContext *s)
|
||||||
av_channel_layout_default(&par->ch_layout, channels);
|
av_channel_layout_default(&par->ch_layout, channels);
|
||||||
st->duration = avio_rl32(pb);
|
st->duration = avio_rl32(pb);
|
||||||
par->sample_rate = 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;
|
return AVERROR_INVALIDDATA;
|
||||||
|
|
||||||
par->block_align = 1;
|
par->block_align = 1;
|
||||||
|
|
Loading…
Reference in New Issue