comparison ac3dec.c @ 10322:6bca3f74d77d libavcodec

remove unneeded assignment in inner loop. rematrixing bands are contiguous.
author jbr
date Wed, 30 Sep 2009 01:09:57 +0000
parents 12d40dab6d80
children 1f5c4d2ce77f
comparison
equal deleted inserted replaced
10321:7f609ddb85bf 10322:6bca3f74d77d
606 int end, bndend; 606 int end, bndend;
607 int tmp0, tmp1; 607 int tmp0, tmp1;
608 608
609 end = FFMIN(s->end_freq[1], s->end_freq[2]); 609 end = FFMIN(s->end_freq[1], s->end_freq[2]);
610 610
611 i = ff_ac3_rematrix_band_tab[0];
611 for(bnd=0; bnd<s->num_rematrixing_bands; bnd++) { 612 for(bnd=0; bnd<s->num_rematrixing_bands; bnd++) {
612 if(s->rematrixing_flags[bnd]) { 613 if(s->rematrixing_flags[bnd]) {
613 bndend = FFMIN(end, ff_ac3_rematrix_band_tab[bnd+1]); 614 bndend = FFMIN(end, ff_ac3_rematrix_band_tab[bnd+1]);
614 for(i=ff_ac3_rematrix_band_tab[bnd]; i<bndend; i++) { 615 for(; i<bndend; i++) {
615 tmp0 = s->fixed_coeffs[1][i]; 616 tmp0 = s->fixed_coeffs[1][i];
616 tmp1 = s->fixed_coeffs[2][i]; 617 tmp1 = s->fixed_coeffs[2][i];
617 s->fixed_coeffs[1][i] = tmp0 + tmp1; 618 s->fixed_coeffs[1][i] = tmp0 + tmp1;
618 s->fixed_coeffs[2][i] = tmp0 - tmp1; 619 s->fixed_coeffs[2][i] = tmp0 - tmp1;
619 } 620 }