diff options
author | Martin Storsjö <martin@martin.st> | 2014-12-10 08:02:43 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2014-12-10 22:51:42 +0200 |
commit | c7921a480467876ece06566e0efd8f6bce9d1903 (patch) | |
tree | 1a9390c7e699d62e054dcf3ce3bbbc8766da3bfe /libavcodec | |
parent | 2c3f29c4894ee50635b846f202296ad79a7c0d33 (diff) | |
download | ffmpeg-c7921a480467876ece06566e0efd8f6bce9d1903.tar.gz |
libfdk-aacdec: Fix a boundary check
This avoids potential out of bounds writes, with potential future
versions of the library.
Bug-Id: CID 1254945
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/libfdk-aacdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libfdk-aacdec.c b/libavcodec/libfdk-aacdec.c index 2c2abae9e7..deef56a56b 100644 --- a/libavcodec/libfdk-aacdec.c +++ b/libavcodec/libfdk-aacdec.c @@ -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; } |