Revision 26f548bb libavcodec/vorbis_dec.c

View differences:

libavcodec/vorbis_dec.c
1448 1448
static int vorbis_parse_audio_packet(vorbis_context *vc)
1449 1449
{
1450 1450
    GetBitContext *gb = &vc->gb;
1451

  
1451
    FFTContext *mdct;
1452 1452
    uint_fast8_t previous_window = vc->previous_window;
1453 1453
    uint_fast8_t mode_number;
1454 1454
    uint_fast8_t blockflag;
......
1552 1552

  
1553 1553
// Dotproduct, MDCT
1554 1554

  
1555
    mdct = &vc->mdct[blockflag];
1556

  
1555 1557
    for (j = vc->audio_channels-1;j >= 0; j--) {
1556 1558
        ch_floor_ptr = vc->channel_floors   + j           * blocksize / 2;
1557 1559
        ch_res_ptr   = vc->channel_residues + res_chan[j] * blocksize / 2;
1558 1560
        vc->dsp.vector_fmul(ch_floor_ptr, ch_floor_ptr, ch_res_ptr, blocksize / 2);
1559
        ff_imdct_half(&vc->mdct[blockflag], ch_res_ptr, ch_floor_ptr);
1561
        mdct->imdct_half(mdct, ch_res_ptr, ch_floor_ptr);
1560 1562
    }
1561 1563

  
1562 1564
// Overlap/add, save data for next overlapping  FPMATH

Also available in: Unified diff