]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
wma_decode_superframe(): Make some variables more local.
authorAndre Noll <maan@systemlinux.org>
Sun, 18 Oct 2009 21:33:54 +0000 (23:33 +0200)
committerAndre Noll <maan@systemlinux.org>
Wed, 18 Nov 2009 18:34:25 +0000 (19:34 +0100)
wmadec_filter.c

index e41e8c505e88e8cdbd325d1e299ed292c49e488b..2fe69940853b8798da95ef63b819108393d426a7 100644 (file)
@@ -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;