ffmpeg | branch: master | Lynne <[email protected]> | Sun Jun 2 23:52:59 2024 +0200| [f4371029f88d2bfa2ce98d325fa1a910be92ccb5] | committer: Lynne
aacdec_usac: fix off by one error check on channel numbers > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f4371029f88d2bfa2ce98d325fa1a910be92ccb5 --- 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 [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
