changeset 10288:518b07f1d61a libavcodec

Cosmetics: Rename some variables to be more descriptive of their use.
author jbr
date Sun, 27 Sep 2009 05:48:03 +0000
parents ef570db9b23e
children fbb6d09eb237
files ac3.c
diffstat 1 files changed, 7 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/ac3.c	Sun Sep 27 05:39:57 2009 +0000
+++ b/ac3.c	Sun Sep 27 05:48:03 2009 +0000
@@ -268,16 +268,14 @@
 av_cold void ac3_common_init(void)
 {
 #if !CONFIG_HARDCODED_TABLES
-    int i, k, l;
     /* compute bndtab and masktab from bandsz */
-    k = 0;
-    l = 0;
-    for (i = 0; i < 50; i++) {
-        band_start_tab[i] = k;
-        l = k + ff_ac3_critical_band_size_tab[i];
-        while (k < l)
-            bin_to_band_tab[k++] = i;
+    int bin = 0, band;
+    for (band = 0; band < 50; band++) {
+        int band_end = bin + ff_ac3_critical_band_size_tab[band];
+        band_start_tab[band] = bin;
+        while (bin < band_end)
+            bin_to_band_tab[bin++] = band;
     }
-    band_start_tab[50] = k;
+    band_start_tab[50] = bin;
 #endif /* !CONFIG_HARDCODED_TABLES */
 }