]> git.tue.mpg.de Git - paraslash.git/commitdiff
remove unused block_num field of struct private_wmadec_data.
authorAndre Noll <maan@systemlinux.org>
Wed, 14 Oct 2009 19:28:47 +0000 (21:28 +0200)
committerAndre Noll <maan@systemlinux.org>
Wed, 18 Nov 2009 18:34:13 +0000 (19:34 +0100)
wmadec_filter.c

index 4d384e1ddf9c82c2768712f9a50aaf44af5284f9..0e2f6b8515773ac6c5c8ebb71fed620e7f25692e 100644 (file)
@@ -96,7 +96,6 @@ struct private_wmadec_data {
        int next_block_len_bits;        ///< log2 of next block length
        int prev_block_len_bits;        ///< log2 of prev block length
        int block_len;          ///< block length in samples
-       int block_num;          ///< block number in current frame
        int block_pos;          ///< current position in frame
        uint8_t ms_stereo;      ///< true if mid/side stereo mode
        uint8_t channel_coded[MAX_CHANNELS];    ///< true if channel is coded
@@ -1098,7 +1097,6 @@ next:
        }
 
        /* update block number */
-       s->block_num++;
        s->block_pos += s->block_len;
        if (s->block_pos >= s->frame_len)
                return 1;
@@ -1129,7 +1127,6 @@ static int wma_decode_frame(struct private_wmadec_data *s, int16_t * samples)
        float *iptr;
 
        /* read each block */
-       s->block_num = 0;
        s->block_pos = 0;
        for (;;) {
                ret = wma_decode_block(s);