From 9970c61b4b85e1df8e109aef2ba003673823e722 Mon Sep 17 00:00:00 2001 From: Sascha Sommer Date: Sat, 20 Jun 2009 09:05:28 +0000 Subject: Introduce WMACoef typedef for decoded coefficients and change default type to float so that the run level decoding functionality can be shared with wmapro Originally committed as revision 19231 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/wma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavcodec/wma.c') diff --git a/libavcodec/wma.c b/libavcodec/wma.c index bdca4bce6d..7cebc9e009 100644 --- a/libavcodec/wma.c +++ b/libavcodec/wma.c @@ -444,12 +444,12 @@ int ff_wma_end(AVCodecContext *avctx) int ff_wma_run_level_decode(AVCodecContext* avctx, GetBitContext* gb, VLC *vlc, const uint16_t *level_table, const uint16_t *run_table, - int version, int16_t *ptr, int offset, + int version, WMACoef *ptr, int offset, int num_coefs, int block_len, int frame_len_bits, int coef_nb_bits) { int code, run, level, sign; - int16_t* eptr = ptr + num_coefs; + WMACoef* eptr = ptr + num_coefs; for(;;) { code = get_vlc2(gb, vlc->table, VLCBITS, VLCMAX); if (code < 0) -- cgit v1.2.3