mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-02-14 03:11:25 +00:00
aacdec_usac: fix off by one error check on channel numbers
This commit is contained in:
parent
0d93e04bc6
commit
f4371029f8
1 changed files with 1 additions and 1 deletions
|
|
@ -359,7 +359,7 @@ int ff_aac_usac_config_decode(AACDecContext *ac, AVCodecContext *avctx,
|
|||
if (!channel_config_idx) {
|
||||
/* UsacChannelConfig() */
|
||||
nb_channels = get_escaped_value(gb, 5, 8, 16); /* numOutChannels */
|
||||
if (nb_channels >= 64)
|
||||
if (nb_channels > 64)
|
||||
return AVERROR(EINVAL);
|
||||
|
||||
av_channel_layout_uninit(&ac->oc[1].ch_layout);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue