Mercurial > libavcodec.hg
diff wma.h @ 10314:ab687351bfef libavcodec
WMA: store level_table as floats, use type punning for sign flip in decode
author | mru |
---|---|
date | Tue, 29 Sep 2009 10:38:34 +0000 |
parents | 38ab367d4231 |
children | 34a65026fa06 |
line wrap: on
line diff
--- a/wma.h Tue Sep 29 10:38:30 2009 +0000 +++ b/wma.h Tue Sep 29 10:38:34 2009 +0000 @@ -93,7 +93,7 @@ //FIXME the following 3 tables should be shared between decoders VLC coef_vlc[2]; uint16_t *run_table[2]; - uint16_t *level_table[2]; + float *level_table[2]; uint16_t *int_table[2]; const CoefVLCTable *coef_vlcs[2]; /* frame info */ @@ -153,7 +153,7 @@ unsigned int ff_wma_get_large_val(GetBitContext* gb); int ff_wma_run_level_decode(AVCodecContext* avctx, GetBitContext* gb, VLC *vlc, - const uint16_t *level_table, const uint16_t *run_table, + const float *level_table, const uint16_t *run_table, int version, WMACoef *ptr, int offset, int num_coefs, int block_len, int frame_len_bits, int coef_nb_bits);