From: Andre Noll Date: Sun, 18 Oct 2009 21:33:54 +0000 (+0200) Subject: wma_decode_superframe(): Make some variables more local. X-Git-Tag: v0.4.1~53 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=e225e84623a55aad75d3f29527b979566b9adf89;hp=bc038d18139ca595b5ff968f1f621158a792a594 wma_decode_superframe(): Make some variables more local. --- diff --git a/wmadec_filter.c b/wmadec_filter.c index e41e8c50..2fe69940 100644 --- a/wmadec_filter.c +++ b/wmadec_filter.c @@ -1144,8 +1144,7 @@ static int wma_decode_frame(struct private_wmadec_data *pwd, int16_t *samples) static int wma_decode_superframe(struct private_wmadec_data *pwd, void *data, int *data_size, const uint8_t *buf, int buf_size) { - int ret, nb_frames, bit_offset, i, pos, len; - uint8_t *q; + int ret; int16_t *samples; static int frame_count; @@ -1159,6 +1158,9 @@ static int wma_decode_superframe(struct private_wmadec_data *pwd, void *data, samples = data; init_get_bits(&pwd->gb, buf, buf_size); if (pwd->use_bit_reservoir) { + int i, nb_frames, bit_offset, pos, len; + uint8_t *q; + /* read super frame header */ skip_bits(&pwd->gb, 4); /* super frame index */ nb_frames = get_bits(&pwd->gb, 4) - 1;