comparison ac3dec.c @ 10331:b5b58febcf68 libavcodec

10l: wrong operation in stereo rematrixing
author jbr
date Wed, 30 Sep 2009 21:51:02 +0000
parents 1f5c4d2ce77f
children c1c4435539e6
comparison
equal deleted inserted replaced
10330:ac0b95400577 10331:b5b58febcf68
611 for(bnd=0; bnd<s->num_rematrixing_bands; bnd++) { 611 for(bnd=0; bnd<s->num_rematrixing_bands; bnd++) {
612 if(s->rematrixing_flags[bnd]) { 612 if(s->rematrixing_flags[bnd]) {
613 bndend = FFMIN(end, ff_ac3_rematrix_band_tab[bnd+1]); 613 bndend = FFMIN(end, ff_ac3_rematrix_band_tab[bnd+1]);
614 for(; i<bndend; i++) { 614 for(; i<bndend; i++) {
615 int tmp0 = s->fixed_coeffs[1][i]; 615 int tmp0 = s->fixed_coeffs[1][i];
616 s->fixed_coeffs[1][i] -= s->fixed_coeffs[2][i]; 616 s->fixed_coeffs[1][i] += s->fixed_coeffs[2][i];
617 s->fixed_coeffs[2][i] = tmp0 - s->fixed_coeffs[2][i]; 617 s->fixed_coeffs[2][i] = tmp0 - s->fixed_coeffs[2][i];
618 } 618 }
619 } 619 }
620 } 620 }
621 } 621 }