提交 66daf3b8 编写于 作者: M Michael Niedermayer

Merge commit 'c7921a48'

* commit 'c7921a48':
  libfdk-aacdec: Fix a boundary check
Merged-by: NMichael Niedermayer <michaelni@gmx.at>
......@@ -100,7 +100,7 @@ static int get_stream_info(AVCodecContext *avctx)
for (i = 0; i < info->numChannels; i++) {
AUDIO_CHANNEL_TYPE ctype = info->pChannelType[i];
if (ctype <= ACT_NONE || ctype > FF_ARRAY_ELEMS(channel_counts)) {
if (ctype <= ACT_NONE || ctype >= FF_ARRAY_ELEMS(channel_counts)) {
av_log(avctx, AV_LOG_WARNING, "unknown channel type\n");
break;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册