X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=wmadec_filter.c;h=be726108818b826ebc4a7f17ac773eb31a1786b8;hp=c6eb0b1cad291bce42f3eda474a9a9c62a28c8b3;hb=1745a87654ce08b57c46ce0870d8571eacbe27c9;hpb=7321c2e7aad44b741be702de0a2ef73222be0d08 diff --git a/wmadec_filter.c b/wmadec_filter.c index c6eb0b1c..be726108 100644 --- a/wmadec_filter.c +++ b/wmadec_filter.c @@ -25,7 +25,6 @@ #include #include #include -#include #include "para.h" #include "error.h" @@ -72,7 +71,9 @@ struct private_wmadec_data { int use_exp_vlc; /** Whether perceptual noise is added. */ int use_noise_coding; + /** Depends on number of the bits per second and the frame length. */ int byte_offset_bits; + /** Only used if use_exp_vlc is true. */ struct vlc exp_vlc; int exponent_sizes[BLOCK_NB_SIZES]; uint16_t exponent_bands[BLOCK_NB_SIZES][25]; @@ -503,9 +504,8 @@ static int wma_decode_init(char *initial_buf, int len, struct private_wmadec_dat if (pwd->use_exp_vlc) { PARA_INFO_LOG("using exp_vlc\n"); - init_vlc(&pwd->exp_vlc, EXPVLCBITS, - sizeof(wma_scale_huffbits), wma_scale_huffbits, - wma_scale_huffcodes, 4); + init_vlc(&pwd->exp_vlc, EXPVLCBITS, sizeof(wma_scale_huffbits), + wma_scale_huffbits, wma_scale_huffcodes, 4); } else { PARA_INFO_LOG("using curve\n"); wma_lsp_to_curve_init(pwd, pwd->frame_len);