summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2006-09-26 17:48:24 +0000
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2006-09-26 17:48:24 +0000
commit5eea78fa8109827b44c8316552e43c0765bc134f (patch)
treea039997fb5bac8b352f9dc2bc2aea415d5ee5f20 /src
parenteeaeb1109d83f8ca10bd06f321b80b9764d1f882 (diff)
downloadxine-lib-5eea78fa8109827b44c8316552e43c0765bc134f.tar.gz
xine-lib-5eea78fa8109827b44c8316552e43c0765bc134f.tar.bz2
Fix an off by one identified by Coverity Scan, CID 136.
CVS patchset: 8293 CVS date: 2006/09/26 17:48:24
Diffstat (limited to 'src')
-rw-r--r--src/libfaad/syntax.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libfaad/syntax.c b/src/libfaad/syntax.c
index 83ff8ccff..a32988177 100644
--- a/src/libfaad/syntax.c
+++ b/src/libfaad/syntax.c
@@ -22,7 +22,7 @@
** Commercial non-GPL licensing of this software is possible.
** For more info contact Ahead Software through Mpeg4AAClicense@nero.com.
**
-** $Id: syntax.c,v 1.9 2005/10/29 23:57:07 tmmm Exp $
+** $Id: syntax.c,v 1.10 2006/09/26 17:48:24 dgp85 Exp $
**/
/*
@@ -323,7 +323,7 @@ static void decode_sce_lfe(NeAACDecHandle hDecoder,
uint8_t channels = hDecoder->fr_channels;
uint8_t tag = 0;
- if (channels+1 > MAX_CHANNELS)
+ if (channels+1 >= MAX_CHANNELS)
{
hInfo->error = 12;
return;