shithub: aacdec

Download patch

ref: b737ae4a9564da46ca31b70be2c87df22b1fbeb8
parent: e19fec5c35a674e2355a14afebd373531d3e2ef2
author: menno <menno>
date: Sat Jul 22 10:13:21 EDT 2006

Bugfix in HCR code

--- a/libfaad/hcr.c
+++ b/libfaad/hcr.c
@@ -27,7 +27,7 @@
 ** Commercial non-GPL licensing of this software is possible.
 ** For more info contact Nero AG through Mpeg4AAClicense@nero.com.
 **
-** $Id: hcr.c,v 1.20 2006/05/07 18:09:00 menno Exp $
+** $Id: hcr.c,v 1.21 2006/07/22 14:13:21 menno Exp $
 **/
 
 #include "common.h"
@@ -293,7 +293,7 @@
                             if (is_good_cb(this_CB, this_sec_CB))                              
                             {
                                 /* precalculate some stuff */
-                                uint16_t sect_sfb_size = min(ics->swb_offset[sfb+1], ics->swb_offset_max) - ics->swb_offset[sfb];
+                                uint16_t sect_sfb_size = ics->sect_sfb_offset[g][sfb+1] - ics->sect_sfb_offset[g][sfb];
                                 uint8_t inc = (this_sec_CB < FIRST_PAIR_HCB) ? QUAD_LEN : PAIR_LEN;
                                 uint16_t group_cws_count = (4*ics->window_group_length[g])/inc;
                                 uint8_t segwidth = segmentWidth(this_sec_CB);