mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 02:21:11 +01: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
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ static int read_header(AVFormatContext *s)
|
|||
st->codecpar->sample_rate = 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 ||
|
||||
st->codecpar->ch_layout.order <= 0)
|
||||
st->codecpar->ch_layout.nb_channels <= 0)
|
||||
return AVERROR(ENOSYS);
|
||||
ffformatcontext(s)->data_offset = data_offset = avio_rl32(s->pb);
|
||||
avio_r8(s->pb);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue