[FFmpeg-soc] [soc]: r4515 - wmapro/wma3dec.c
faust3
subversion at mplayerhq.hu
Wed Jun 24 19:00:07 CEST 2009
Author: faust3
Date: Wed Jun 24 19:00:06 2009
New Revision: 4515
Log:
Get rid of obsolete coef_max variable
Modified:
wmapro/wma3dec.c
Modified: wmapro/wma3dec.c
==============================================================================
--- wmapro/wma3dec.c Wed Jun 24 18:53:25 2009 (r4514)
+++ wmapro/wma3dec.c Wed Jun 24 19:00:06 2009 (r4515)
@@ -156,7 +156,6 @@ typedef struct WMA3DecodeContext {
MDCTContext mdct_ctx[WMAPRO_BLOCK_SIZES]; ///< MDCT context per block size
DECLARE_ALIGNED_16(float, tmp[WMAPRO_BLOCK_MAX_SIZE]); ///< imdct output buffer
float* windows[WMAPRO_BLOCK_SIZES]; ///< window per block size
- int coef_max[2]; ///< max length of vlc codes
/* frame size dependent frame information (set during initialization) */
uint8_t lossless; ///< lossless mode
@@ -350,14 +349,10 @@ static av_cold int decode_init(AVCodecCo
coef0_huffbits, 1, 1,
coef0_huffcodes, 4, 4, 2108);
- s->coef_max[0] = ((HUFF_COEF0_MAXBITS+VLCBITS-1)/VLCBITS);
-
INIT_VLC_STATIC(&coef_vlc[1], VLCBITS, HUFF_COEF1_SIZE,
coef1_huffbits, 1, 1,
coef1_huffcodes, 4, 4, 3912);
- s->coef_max[1] = ((HUFF_COEF1_MAXBITS+VLCBITS-1)/VLCBITS);
-
INIT_VLC_STATIC(&vec4_vlc, VLCBITS, HUFF_VEC4_SIZE,
vec4_huffbits, 1, 1,
vec4_huffcodes, 2, 2, 604);
@@ -825,7 +820,6 @@ static int decode_coeffs(WMA3DecodeConte
{
int vlctable;
VLC* vlc;
- int vlcmax;
WMA3ChannelCtx* ci = &s->channel[c];
int rl_mode = 0;
int cur_coeff = 0;
@@ -839,7 +833,6 @@ static int decode_coeffs(WMA3DecodeConte
vlctable = get_bits1(&s->gb);
vlc = &coef_vlc[vlctable];
- vlcmax = s->coef_max[vlctable];
if (vlctable) {
run = coef1_run;
More information about the FFmpeg-soc
mailing list