Revision e29af818 libavcodec/aacdec.c

View differences:

libavcodec/aacdec.c
537 537
static av_cold int aac_decode_init(AVCodecContext *avctx)
538 538
{
539 539
    AACContext *ac = avctx->priv_data;
540
    int i;
541 540

  
542 541
    ac->avctx = avctx;
543 542
    ac->m4ac.sample_rate = avctx->sample_rate;
......
581 580
        ac->sf_offset = 60;
582 581
    }
583 582

  
584
#if !CONFIG_HARDCODED_TABLES
585
    for (i = 0; i < 428; i++)
586
        ff_aac_pow2sf_tab[i] = pow(2, (i - 200) / 4.);
587
#endif /* CONFIG_HARDCODED_TABLES */
583
    ff_aac_tableinit();
588 584

  
589 585
    INIT_VLC_STATIC(&vlc_scalefactors,7,FF_ARRAY_ELEMS(ff_aac_scalefactor_code),
590 586
                    ff_aac_scalefactor_bits, sizeof(ff_aac_scalefactor_bits[0]), sizeof(ff_aac_scalefactor_bits[0]),

Also available in: Unified diff