]> git.tue.mpg.de Git - paraslash.git/commitdiff
wma_decode_block(): Kill useless variable 'sign'.
authorAndre Noll <maan@systemlinux.org>
Mon, 19 Oct 2009 21:53:22 +0000 (23:53 +0200)
committerAndre Noll <maan@systemlinux.org>
Wed, 18 Nov 2009 18:34:27 +0000 (19:34 +0100)
wmadec_filter.c

index 70b18b8627c675001c8c85bbb79d7f24a55eff4d..ca5e22a40ccfd1bd00f564d51113981d0efa1106 100644 (file)
@@ -823,7 +823,7 @@ static int wma_decode_block(struct private_wmadec_data *pwd)
        /* parse spectral coefficients : just RLE encoding */
        for (ch = 0; ch < pwd->ahi.channels; ch++) {
                struct vlc *coef_vlc;
-               int level, run, sign, tindex;
+               int level, run, tindex;
                int16_t *ptr, *eptr;
                const uint16_t *level_table, *run_table;
 
@@ -856,8 +856,7 @@ static int wma_decode_block(struct private_wmadec_data *pwd)
                                run = run_table[code];
                                level = level_table[code];
                        }
-                       sign = get_bit(&pwd->gb);
-                       if (!sign)
+                       if (!get_bit(&pwd->gb))
                                level = -level;
                        ptr += run;
                        if (ptr >= eptr) {