Mercurial > libavcodec.hg
comparison wmaprodec.c @ 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 | 9699e4499f2d |
| children | 8eb51d3eccdf |
comparison
equal
deleted
inserted
replaced
| 10313:f7376a522a7e | 10314:ab687351bfef |
|---|---|
| 767 WMAProChannelCtx* ci = &s->channel[c]; | 767 WMAProChannelCtx* ci = &s->channel[c]; |
| 768 int rl_mode = 0; | 768 int rl_mode = 0; |
| 769 int cur_coeff = 0; | 769 int cur_coeff = 0; |
| 770 int num_zeros = 0; | 770 int num_zeros = 0; |
| 771 const uint16_t* run; | 771 const uint16_t* run; |
| 772 const uint16_t* level; | 772 const float* level; |
| 773 | 773 |
| 774 dprintf(s->avctx, "decode coefficients for channel %i\n", c); | 774 dprintf(s->avctx, "decode coefficients for channel %i\n", c); |
| 775 | 775 |
| 776 vlctable = get_bits1(&s->gb); | 776 vlctable = get_bits1(&s->gb); |
| 777 vlc = &coef_vlc[vlctable]; | 777 vlc = &coef_vlc[vlctable]; |
