changeset 10294:a8514d4fa525 libavcodec

Cosmetics: Rename some variables.
author jbr
date Sun, 27 Sep 2009 06:38:13 +0000
parents 261af05be0b5
children 916c2b7ecd02
files ac3dec.c
diffstat 1 files changed, 11 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/ac3dec.c	Sun Sep 27 06:33:23 2009 +0000
+++ b/ac3dec.c	Sun Sep 27 06:38:13 2009 +0000
@@ -412,18 +412,18 @@
  */
 static void calc_transform_coeffs_cpl(AC3DecodeContext *s)
 {
-    int i, j, ch, bnd;
+    int bin, band, ch, band_end;
 
-    i = s->start_freq[CPL_CH];
-    for(bnd=0; bnd<s->num_cpl_bands; bnd++) {
-        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] *
-                                              (int64_t)s->cpl_coords[ch][bnd]) >> 23;
-                    if (ch == 2 && s->phase_flags[bnd])
-                        s->fixed_coeffs[ch][i] = -s->fixed_coeffs[ch][i];
+    bin = s->start_freq[CPL_CH];
+    for (band = 0; band < s->num_cpl_bands; band++) {
+        band_end = bin + s->cpl_band_sizes[band];
+        for (; bin < band_end; bin++) {
+            for (ch = 1; ch <= s->fbw_channels; ch++) {
+                if (s->channel_in_cpl[ch]) {
+                    s->fixed_coeffs[ch][bin] = ((int64_t)s->fixed_coeffs[CPL_CH][bin] *
+                                                (int64_t)s->cpl_coords[ch][band]) >> 23;
+                    if (ch == 2 && s->phase_flags[band])
+                        s->fixed_coeffs[ch][bin] = -s->fixed_coeffs[ch][bin];
                 }
             }
         }