static void lame_window_init(AacPsyContext *ctx, AVCodecContext *avctx) {

    int i;



    for (i = 0; i < avctx->channels; i++) {

        AacPsyChannel *pch = &ctx->ch[i];



        if (avctx->flags & CODEC_FLAG_QSCALE)

            pch->attack_threshold = psy_vbr_map[avctx->global_quality / FF_QP2LAMBDA].st_lrm;

        else

            pch->attack_threshold = lame_calc_attack_threshold(avctx->bit_rate / avctx->channels / 1000);



        for (i = 0; i < AAC_NUM_BLOCKS_SHORT * PSY_LAME_NUM_SUBBLOCKS; i++)

            pch->prev_energy_subshort[i] = 10.0f;

    }

}

static void lame_window_init(AacPsyContext *ctx, AVCodecContext *avctx) {

    int i;



    for (i = 0; i < avctx->channels; i++) {

        AacPsyChannel *pch = &ctx->ch[i];



        if (avctx->flags & CODEC_FLAG_QSCALE)

            pch->attack_threshold = psy_vbr_map[avctx->global_quality / FF_QP2LAMBDA].st_lrm;

        else

            pch->attack_threshold = lame_calc_attack_threshold(avctx->bit_rate / avctx->channels / 1000);



        for (i = 0; i < AAC_NUM_BLOCKS_SHORT * PSY_LAME_NUM_SUBBLOCKS; i++)

            pch->prev_energy_subshort[i] = 10.0f;

    }

}

    int i;         for (i = 0; i < AAC_NUM_BLOCKS_SHORT * PSY_LAME_NUM_SUBBLOCKS; i++)             pch->prev_energy_subshort[i] = 10.0f;
static void FUNC_0(AacPsyContext *VAR_0, AVCodecContext *VAR_1) {

    int VAR_2;



    for (VAR_2 = 0; VAR_2 < VAR_1->channels; VAR_2++) {

        AacPsyChannel *pch = &VAR_0->ch[VAR_2];



        if (VAR_1->flags & CODEC_FLAG_QSCALE)

            pch->attack_threshold = psy_vbr_map[VAR_1->global_quality / FF_QP2LAMBDA].st_lrm;

        else

            pch->attack_threshold = lame_calc_attack_threshold(VAR_1->bit_rate / VAR_1->channels / 1000);



        for (VAR_2 = 0; VAR_2 < AAC_NUM_BLOCKS_SHORT * PSY_LAME_NUM_SUBBLOCKS; VAR_2++)

            pch->prev_energy_subshort[VAR_2] = 10.0f;

    }

}

static void FUNC_0(AacPsyContext *VAR_0, AVCodecContext *VAR_1) { int VAR_2; for (VAR_2 = 0; VAR_2 < VAR_1->channels; VAR_2++) { AacPsyChannel *pch = &VAR_0->ch[VAR_2]; if (VAR_1->flags & CODEC_FLAG_QSCALE)
pch->attack_threshold = psy_vbr_map[VAR_1->global_quality / FF_QP2LAMBDA].st_lrm; else
pch->attack_threshold = lame_calc_attack_threshold(VAR_1->bit_rate / VAR_1->channels / 1000); for (VAR_2 = 0; VAR_2 < AAC_NUM_BLOCKS_SHORT * PSY_LAME_NUM_SUBBLOCKS; VAR_2++) pch->prev_energy_subshort[VAR_2] = 10.0f; } }