ffmpeg | branch: master | Lynne <d...@lynne.ee> | Sun Jun 2 23:52:59 2024 +0200| [8ad8b5e63e28144d7378eef7632165040c8feb8a] | committer: Lynne
aacdec_usac: fix off by one error check on channel numbers > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8ad8b5e63e28144d7378eef7632165040c8feb8a --- libavcodec/aac/aacdec_usac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/aac/aacdec_usac.c b/libavcodec/aac/aacdec_usac.c index 5426ca9a69..7f4f38e12e 100644 --- a/libavcodec/aac/aacdec_usac.c +++ b/libavcodec/aac/aacdec_usac.c @@ -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); _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".