changeset 10287:ef570db9b23e libavcodec

Remove some unneeded variables.
author jbr
date Sun, 27 Sep 2009 05:39:57 +0000
parents 2bb4b0cda61e
children 518b07f1d61a
files ac3.c
diffstat 1 files changed, 5 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/ac3.c	Sun Sep 27 05:36:52 2009 +0000
+++ b/ac3.c	Sun Sep 27 05:39:57 2009 +0000
@@ -268,17 +268,16 @@
 av_cold void ac3_common_init(void)
 {
 #if !CONFIG_HARDCODED_TABLES
-    int i, j, k, l, v;
+    int i, k, l;
     /* compute bndtab and masktab from bandsz */
     k = 0;
     l = 0;
     for (i = 0; i < 50; i++) {
-        band_start_tab[i] = l;
-        v = ff_ac3_critical_band_size_tab[i];
-        for (j = 0; j < v; j++)
+        band_start_tab[i] = k;
+        l = k + ff_ac3_critical_band_size_tab[i];
+        while (k < l)
             bin_to_band_tab[k++] = i;
-        l += v;
     }
-    band_start_tab[50] = l;
+    band_start_tab[50] = k;
 #endif /* !CONFIG_HARDCODED_TABLES */
 }