From 6137d1bba3738e9ef165990ea25bdb40d72a765d Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 19 Oct 2009 23:53:22 +0200 Subject: [PATCH] wma_decode_block(): Kill useless variable 'sign'. --- wmadec_filter.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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) { -- 2.39.2