mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avformat/boadec: fix check for invalid channel count
Regression since 8269fbcb7a
.
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
85b7be53e1
commit
0af06344cd
@ -57,7 +57,7 @@ static int read_header(AVFormatContext *s)
|
|||||||
st->codecpar->sample_rate = avio_rl32(s->pb);
|
st->codecpar->sample_rate = avio_rl32(s->pb);
|
||||||
st->codecpar->ch_layout.nb_channels = avio_rl32(s->pb);
|
st->codecpar->ch_layout.nb_channels = avio_rl32(s->pb);
|
||||||
if (st->codecpar->ch_layout.nb_channels > FF_SANE_NB_CHANNELS ||
|
if (st->codecpar->ch_layout.nb_channels > FF_SANE_NB_CHANNELS ||
|
||||||
st->codecpar->ch_layout.order <= 0)
|
st->codecpar->ch_layout.nb_channels <= 0)
|
||||||
return AVERROR(ENOSYS);
|
return AVERROR(ENOSYS);
|
||||||
ffformatcontext(s)->data_offset = data_offset = avio_rl32(s->pb);
|
ffformatcontext(s)->data_offset = data_offset = avio_rl32(s->pb);
|
||||||
avio_r8(s->pb);
|
avio_r8(s->pb);
|
||||||
|
Loading…
Reference in New Issue
Block a user