ref: 7421a3b9696af2b4468332f57776d2abf9e1b1d6
parent: a1f471d10a3e22cf0da36c08c26349f5df7e7f3a
author: menno <menno>
date: Tue Aug 3 16:29:21 EDT 2004
hcr.c: bugfix
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2 august 2004 gpascutto(at)nero.com
+ - hcr.c: bugfix
+
31 july 2004 gpascutto(at)nero.com
- hcr.c: Rewritten and optimized
--- a/libfaad/hcr.c
+++ b/libfaad/hcr.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: hcr.c,v 1.16 2004/07/31 15:48:56 menno Exp $
+** $Id: hcr.c,v 1.18 2004/09/04 14:56:28 menno Exp $
**/
#include "common.h"
@@ -374,6 +374,9 @@
{
const uint16_t segment_idx = (trial + codewordBase) % numberOfSegments;
const uint16_t codeword_idx = codewordBase + set*numberOfSegments - numberOfSegments;
+
+ /* data up */
+ if (codeword_idx >= numberOfCodewords - numberOfSegments) break;
if (!codeword[codeword_idx].decoded && segment[segment_idx].len > 0)
{