diff options
author | Zdenek Kabelac <kabi@informatics.muni.cz> | 2003-02-18 11:48:57 +0000 |
---|---|---|
committer | Zdenek Kabelac <kabi@informatics.muni.cz> | 2003-02-18 11:48:57 +0000 |
commit | c947dec982117ee0b96a39f4736f6817a7522ed6 (patch) | |
tree | 8a9d1a82481ed4442db3211e1673d8eb64118b29 /libavcodec/liba52/bit_allocate.c | |
parent | ca390e727d165bf80445035c4b67a7239fdc87c0 (diff) |
* sync with main liba52 sources
Originally committed as revision 1590 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/liba52/bit_allocate.c')
-rw-r--r-- | libavcodec/liba52/bit_allocate.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libavcodec/liba52/bit_allocate.c b/libavcodec/liba52/bit_allocate.c index c988024552..c8da24e9e6 100644 --- a/libavcodec/liba52/bit_allocate.c +++ b/libavcodec/liba52/bit_allocate.c @@ -1,6 +1,6 @@ /* * bit_allocate.c - * Copyright (C) 2000-2002 Michel Lespinasse <walken@zoy.org> + * Copyright (C) 2000-2003 Michel Lespinasse <walken@zoy.org> * Copyright (C) 1999-2000 Aaron Holtzman <aholtzma@ess.engr.uvic.ca> * * This file is part of a52dec, a free ATSC A-52 stream decoder. @@ -20,6 +20,11 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ + +#include "config.h" + +#include <inttypes.h> + #include "a52.h" #include "a52_internal.h" @@ -226,7 +231,7 @@ void a52_bit_allocate (a52_state_t * state, ba_t * ba, int bndstart, int startband, endband; startband = j; - endband = ((bndtab-20)[i] < end) ? (bndtab-20)[i] : end; + endband = (bndtab[i-20] < end) ? bndtab[i-20] : end; psd = 128 * exp[j++]; while (j < endband) { int next, delta; |