From: Andre Noll Date: Mon, 19 Oct 2009 21:53:22 +0000 (+0200) Subject: wma_decode_block(): Kill useless variable 'sign'. X-Git-Tag: v0.4.1~44 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=6137d1bba3738e9ef165990ea25bdb40d72a765d wma_decode_block(): Kill useless variable 'sign'. --- diff --git a/wmadec_filter.c b/wmadec_filter.c index 70b18b86..ca5e22a4 100644 --- a/wmadec_filter.c +++ b/wmadec_filter.c @@ -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) {