From 483b8a3fcd9a67d3c8b14d6fe99389f6d9eb9c05 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 19 Oct 2009 23:24:08 +0200 Subject: [PATCH] trivial whitespace fixes. --- wmadec_filter.c | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/wmadec_filter.c b/wmadec_filter.c index 53677629..e39dc7f0 100644 --- a/wmadec_filter.c +++ b/wmadec_filter.c @@ -839,23 +839,17 @@ static int wma_decode_block(struct private_wmadec_data *pwd) eptr = ptr + nb_coefs[ch]; memset(ptr, 0, pwd->block_len * sizeof(int16_t)); for (;;) { - code = - get_vlc(&pwd->gb, coef_vlc->table, VLCBITS, - VLCMAX); + code = get_vlc(&pwd->gb, coef_vlc->table, + VLCBITS, VLCMAX); if (code < 0) return -1; - if (code == 1) { - /* EOB */ + if (code == 1) /* EOB */ break; - } else if (code == 0) { - /* escape */ + if (code == 0) { /* escape */ level = get_bits(&pwd->gb, coef_nb_bits); - /* NOTE: this is rather suboptimal. reading - block_len_bits would be better */ - run = - get_bits(&pwd->gb, pwd->frame_len_bits); - } else { - /* normal code */ + /* reading block_len_bits would be better */ + run = get_bits(&pwd->gb, pwd->frame_len_bits); + } else { /* normal code */ run = run_table[code]; level = level_table[code]; } @@ -868,8 +862,7 @@ static int wma_decode_block(struct private_wmadec_data *pwd) break; } *ptr++ = level; - /* NOTE: EOB can be omitted */ - if (ptr >= eptr) + if (ptr >= eptr) /* EOB can be omitted */ break; } } -- 2.39.5