From e225e84623a55aad75d3f29527b979566b9adf89 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 18 Oct 2009 23:33:54 +0200 Subject: [PATCH] wma_decode_superframe(): Make some variables more local. --- wmadec_filter.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; -- 2.39.5