Revision 26f548bb libavcodec/wmaenc.c

View differences:

libavcodec/wmaenc.c
77 77
static void apply_window_and_mdct(AVCodecContext * avctx, const signed short * audio, int len) {
78 78
    WMACodecContext *s = avctx->priv_data;
79 79
    int window_index= s->frame_len_bits - s->block_len_bits;
80
    FFTContext *mdct = &s->mdct_ctx[window_index];
80 81
    int i, j, channel;
81 82
    const float * win = s->windows[window_index];
82 83
    int window_len = 1 << s->block_len_bits;
......
89 90
            s->output[i+window_len]  = audio[j] / n * win[window_len - i - 1];
90 91
            s->frame_out[channel][i] = audio[j] / n * win[i];
91 92
        }
92
        ff_mdct_calc(&s->mdct_ctx[window_index], s->coefs[channel], s->output);
93
        mdct->mdct_calc(mdct, s->coefs[channel], s->output);
93 94
    }
94 95
}
95 96

  

Also available in: Unified diff