[FFmpeg-cvslog] r20089 - trunk/libavcodec/ac3dec.c

jbr subversion
Wed Sep 30 03:09:57 CEST 2009


Author: jbr
Date: Wed Sep 30 03:09:57 2009
New Revision: 20089

Log:
remove unneeded assignment in inner loop. rematrixing bands are contiguous.

Modified:
   trunk/libavcodec/ac3dec.c

Modified: trunk/libavcodec/ac3dec.c
==============================================================================
--- trunk/libavcodec/ac3dec.c	Tue Sep 29 23:53:36 2009	(r20088)
+++ trunk/libavcodec/ac3dec.c	Wed Sep 30 03:09:57 2009	(r20089)
@@ -608,10 +608,11 @@ static void do_rematrixing(AC3DecodeCont
 
     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;



More information about the ffmpeg-cvslog mailing list