aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/wma.c
diff options
context:
space:
mode:
authorSascha Sommer <saschasommer@freenet.de>2009-06-20 09:05:28 +0000
committerSascha Sommer <saschasommer@freenet.de>2009-06-20 09:05:28 +0000
commit9970c61b4b85e1df8e109aef2ba003673823e722 (patch)
treeeeff3ab6f3fc7ca34b808877eda7fd93839bf60e /libavcodec/wma.c
parent9ed3afcb7fe524dee315e800d17f94aa34b8d0b1 (diff)
downloadffmpeg-9970c61b4b85e1df8e109aef2ba003673823e722.tar.gz
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
Diffstat (limited to 'libavcodec/wma.c')
-rw-r--r--libavcodec/wma.c4
1 files changed, 2 insertions, 2 deletions
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)