History

aacdec_usac: fix off by one error check on channel numbers

Lynne committed 2 years ago

Commit f4371021 parent 0d93e041 file · +1 −1Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/aac/aacdec_usac.c+1−1
@@ -359,7 +359,7 @@ int ff_aac_usac_config_decode(AACDecContext *ac, AVCodecContext *avctx, · 358 unmodified lines
359359 if (!channel_config_idx) {
360360 /* UsacChannelConfig() */
361361 nb_channels = get_escaped_value(gb, 5, 8, 16); /* numOutChannels */
362− if (nb_channels >= 64)
362+ if (nb_channels > 64)
363363 return AVERROR(EINVAL);
364364
365365 av_channel_layout_uninit(&ac->oc[1].ch_layout);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t