wma: Drop unused argument from wma_decode_superframe().
[paraslash.git] / wmadec_filter.c
index a76f77d..0c96dc6 100644 (file)
@@ -1041,12 +1041,11 @@ 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 *data_size, const uint8_t *buf)
 {
-       int ret;
+       int ret, buf_size = pwd->ahi.packet_size - WMA_FRAME_SKIP;
        int16_t *samples;
 
-       buf_size = pwd->ahi.packet_size - WMA_FRAME_SKIP;
        samples = data;
        init_get_bits(&pwd->gb, buf, buf_size);
        if (pwd->ahi.use_bit_reservoir) {
@@ -1217,7 +1216,7 @@ next_buffer:
        out_size = WMA_OUTPUT_BUFFER_SIZE;
        out = para_malloc(out_size);
        ret = wma_decode_superframe(pwd, out, &out_size,
-               (uint8_t *)in + WMA_FRAME_SKIP, len - WMA_FRAME_SKIP);
+               (uint8_t *)in + WMA_FRAME_SKIP);
        if (ret < 0) {
                free(out);
                goto err;