Mercurial > libavcodec.hg
comparison wmadec.c @ 7547:8226017a65ae libavcodec
mdct wrapper function to match fft
author | lorenm |
---|---|
date | Tue, 12 Aug 2008 00:38:30 +0000 |
parents | 97383e012cb9 |
children | 7c22b99dbf5e |
comparison
equal
deleted
inserted
replaced
7546:97383e012cb9 | 7547:8226017a65ae |
---|---|
686 int n4, index, n; | 686 int n4, index, n; |
687 | 687 |
688 n = s->block_len; | 688 n = s->block_len; |
689 n4 = s->block_len / 2; | 689 n4 = s->block_len / 2; |
690 if(s->channel_coded[ch]){ | 690 if(s->channel_coded[ch]){ |
691 s->mdct_ctx[bsize].fft.imdct_calc(&s->mdct_ctx[bsize], s->output, s->coefs[ch]); | 691 ff_imdct_calc(&s->mdct_ctx[bsize], s->output, s->coefs[ch]); |
692 }else | 692 }else |
693 memset(s->output, 0, sizeof(s->output)); | 693 memset(s->output, 0, sizeof(s->output)); |
694 | 694 |
695 /* multiply by the window and add in the frame */ | 695 /* multiply by the window and add in the frame */ |
696 index = (s->frame_len / 2) + s->block_pos - n4; | 696 index = (s->frame_len / 2) + s->block_pos - n4; |