mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
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> (cherry picked from commit 348c3a7ffe0c3aecf35f1a26a9f321a4e608dab7) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
0eda3eaac4
commit
e292a764c0
@ -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…
x
Reference in New Issue
Block a user