Mercurial > libavcodec.hg
comparison wmaenc.c @ 7546:97383e012cb9 libavcodec
remove mdct tmp buffer
author | lorenm |
---|---|
date | Tue, 12 Aug 2008 00:36:36 +0000 |
parents | 85ab7655ad4d |
children | 5be50ba0ce24 |
comparison
equal
deleted
inserted
replaced
7545:2dca9201c400 | 7546:97383e012cb9 |
---|---|
87 j = channel; | 87 j = channel; |
88 for (i = 0; i < len; i++, j += avctx->channels){ | 88 for (i = 0; i < len; i++, j += avctx->channels){ |
89 s->output[i+window_len] = audio[j] / n * win[window_len - i - 1]; | 89 s->output[i+window_len] = audio[j] / n * win[window_len - i - 1]; |
90 s->frame_out[channel][i] = audio[j] / n * win[i]; | 90 s->frame_out[channel][i] = audio[j] / n * win[i]; |
91 } | 91 } |
92 ff_mdct_calc(&s->mdct_ctx[window_index], s->coefs[channel], s->output, s->mdct_tmp); | 92 ff_mdct_calc(&s->mdct_ctx[window_index], s->coefs[channel], s->output); |
93 } | 93 } |
94 } | 94 } |
95 | 95 |
96 //FIXME use for decoding too | 96 //FIXME use for decoding too |
97 static void init_exp(WMACodecContext *s, int ch, const int *exp_param){ | 97 static void init_exp(WMACodecContext *s, int ch, const int *exp_param){ |