Revision 26f548bb libavcodec/wmadec.c

View differences:

libavcodec/wmadec.c
447 447
    int coef_nb_bits, total_gain;
448 448
    int nb_coefs[MAX_CHANNELS];
449 449
    float mdct_norm;
450
    FFTContext *mdct;
450 451

  
451 452
#ifdef TRACE
452 453
    tprintf(s->avctx, "***decode_block: %d:%d\n", s->frame_count - 1, s->block_num);
......
742 743
    }
743 744

  
744 745
next:
746
    mdct = &s->mdct_ctx[bsize];
747

  
745 748
    for(ch = 0; ch < s->nb_channels; ch++) {
746 749
        int n4, index;
747 750

  
748 751
        n4 = s->block_len / 2;
749 752
        if(s->channel_coded[ch]){
750
            ff_imdct_calc(&s->mdct_ctx[bsize], s->output, s->coefs[ch]);
753
            mdct->imdct_calc(mdct, s->output, s->coefs[ch]);
751 754
        }else if(!(s->ms_stereo && ch==1))
752 755
            memset(s->output, 0, sizeof(s->output));
753 756

  

Also available in: Unified diff