changeset 10498:9bf0edb1aeb1 libavcodec

ac3dec: revert r20089. The change was just wrong. 10l for me.
author jbr
date Sun, 08 Nov 2009 03:06:05 +0000
parents 8b4b365d08f5
children c5c25c9b6644
files ac3dec.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ac3dec.c	Sat Nov 07 20:10:02 2009 +0000
+++ b/ac3dec.c	Sun Nov 08 03:06:05 2009 +0000
@@ -607,11 +607,10 @@
 
     end = FFMIN(s->end_freq[1], s->end_freq[2]);
 
-    i = ff_ac3_rematrix_band_tab[0];
     for(bnd=0; bnd<s->num_rematrixing_bands; bnd++) {
         if(s->rematrixing_flags[bnd]) {
             bndend = FFMIN(end, ff_ac3_rematrix_band_tab[bnd+1]);
-            for(; i<bndend; i++) {
+            for(i=ff_ac3_rematrix_band_tab[bnd]; i<bndend; i++) {
                 int tmp0 = s->fixed_coeffs[1][i];
                 s->fixed_coeffs[1][i] += s->fixed_coeffs[2][i];
                 s->fixed_coeffs[2][i]  = tmp0 - s->fixed_coeffs[2][i];