comparison ac3dec.c @ 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 c1c4435539e6
children f8fc0a56745e
comparison
equal deleted inserted replaced
10497:8b4b365d08f5 10498:9bf0edb1aeb1
605 int bnd, i; 605 int bnd, i;
606 int end, bndend; 606 int end, bndend;
607 607
608 end = FFMIN(s->end_freq[1], s->end_freq[2]); 608 end = FFMIN(s->end_freq[1], s->end_freq[2]);
609 609
610 i = ff_ac3_rematrix_band_tab[0];
611 for(bnd=0; bnd<s->num_rematrixing_bands; bnd++) { 610 for(bnd=0; bnd<s->num_rematrixing_bands; bnd++) {
612 if(s->rematrixing_flags[bnd]) { 611 if(s->rematrixing_flags[bnd]) {
613 bndend = FFMIN(end, ff_ac3_rematrix_band_tab[bnd+1]); 612 bndend = FFMIN(end, ff_ac3_rematrix_band_tab[bnd+1]);
614 for(; i<bndend; i++) { 613 for(i=ff_ac3_rematrix_band_tab[bnd]; i<bndend; i++) {
615 int tmp0 = s->fixed_coeffs[1][i]; 614 int tmp0 = s->fixed_coeffs[1][i];
616 s->fixed_coeffs[1][i] += s->fixed_coeffs[2][i]; 615 s->fixed_coeffs[1][i] += s->fixed_coeffs[2][i];
617 s->fixed_coeffs[2][i] = tmp0 - s->fixed_coeffs[2][i]; 616 s->fixed_coeffs[2][i] = tmp0 - s->fixed_coeffs[2][i];
618 } 617 }
619 } 618 }