summaryrefslogtreecommitdiff
path: root/libavcodec/wma.h
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2009-09-29 10:38:34 +0000
committerMåns Rullgård <mans@mansr.com>2009-09-29 10:38:34 +0000
commit076a9dea1ee01e54abf4a18f4aa73fad02f200a7 (patch)
tree3287271b4874d8a22b53ccb6655506aa57f677d8 /libavcodec/wma.h
parentff00b94e9d4f66922abe1830da2954a024bf87e5 (diff)
downloadffmpeg-076a9dea1ee01e54abf4a18f4aa73fad02f200a7.tar.gz
WMA: store level_table as floats, use type punning for sign flip in decode
Originally committed as revision 20078 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/wma.h')
-rw-r--r--libavcodec/wma.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/wma.h b/libavcodec/wma.h
index 6db60fafdb..b6c29433bb 100644
--- a/libavcodec/wma.h
+++ b/libavcodec/wma.h
@@ -93,7 +93,7 @@ typedef struct WMACodecContext {
//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 @@ int ff_wma_end(AVCodecContext *avctx);
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);