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

jbr subversion
Sun Sep 27 08:33:23 CEST 2009


Author: jbr
Date: Sun Sep 27 08:33:23 2009
New Revision: 20051

Log:
Simplify coupling band loop.

Modified:
   trunk/libavcodec/ac3dec.c

Modified: trunk/libavcodec/ac3dec.c
==============================================================================
--- trunk/libavcodec/ac3dec.c	Sun Sep 27 08:16:49 2009	(r20050)
+++ trunk/libavcodec/ac3dec.c	Sun Sep 27 08:33:23 2009	(r20051)
@@ -416,7 +416,8 @@ static void calc_transform_coeffs_cpl(AC
 
     i = s->start_freq[CPL_CH];
     for(bnd=0; bnd<s->num_cpl_bands; bnd++) {
-        for (j = 0; j < s->cpl_band_sizes[bnd]; j++,i++) {
+        j = i + s->cpl_band_sizes[bnd];
+        for (; i < j; i++) {
             for(ch=1; ch<=s->fbw_channels; ch++) {
                 if(s->channel_in_cpl[ch]) {
                     s->fixed_coeffs[ch][i] = ((int64_t)s->fixed_coeffs[CPL_CH][i] *



More information about the ffmpeg-cvslog mailing list