mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-28 17:51:05 +00:00
aacdec_usac: fix off by one error check on channel numbers
This commit is contained in:
parent
0d93e04bc6
commit
f4371029f8
@ -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…
Reference in New Issue
Block a user