changeset 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 7f609ddb85bf
children 1f5c4d2ce77f
files ac3dec.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ac3dec.c	Tue Sep 29 19:18:51 2009 +0000
+++ b/ac3dec.c	Wed Sep 30 01:09:57 2009 +0000
@@ -608,10 +608,11 @@
 
     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=ff_ac3_rematrix_band_tab[bnd]; i<bndend; i++) {
+            for(; i<bndend; i++) {
                 tmp0 = s->fixed_coeffs[1][i];
                 tmp1 = s->fixed_coeffs[2][i];
                 s->fixed_coeffs[1][i] = tmp0 + tmp1;