static int encode_individual_channel(AVCodecContext *avctx, AACEncContext *s,

                                     SingleChannelElement *sce,

                                     int common_window)

{

    put_bits(&s->pb, 8, sce->sf_idx[0]);

    if (!common_window) {

        put_ics_info(s, &sce->ics);

        if (s->coder->encode_main_pred)

            s->coder->encode_main_pred(s, sce);

    }

    encode_band_info(s, sce);

    encode_scale_factors(avctx, s, sce);

    encode_pulses(s, &sce->pulse);

    if (s->coder->encode_tns_info)

        s->coder->encode_tns_info(s, sce);

    else

        put_bits(&s->pb, 1, 0);

    put_bits(&s->pb, 1, 0); //ssr

    encode_spectral_coeffs(s, sce);

    return 0;

}

static int encode_individual_channel(AVCodecContext *avctx, AACEncContext *s,

                                     SingleChannelElement *sce,

                                     int common_window)

{

    put_bits(&s->pb, 8, sce->sf_idx[0]);

    if (!common_window) {

        put_ics_info(s, &sce->ics);

        if (s->coder->encode_main_pred)

            s->coder->encode_main_pred(s, sce);

    }

    encode_band_info(s, sce);

    encode_scale_factors(avctx, s, sce);

    encode_pulses(s, &sce->pulse);

    if (s->coder->encode_tns_info)

        s->coder->encode_tns_info(s, sce);

    else

        put_bits(&s->pb, 1, 0);

    put_bits(&s->pb, 1, 0); 

    encode_spectral_coeffs(s, sce);

    return 0;

}

static int FUNC_0(AVCodecContext *VAR_0, AACEncContext *VAR_1,

                                     SingleChannelElement *VAR_2,

                                     int VAR_3)

{

    put_bits(&VAR_1->pb, 8, VAR_2->sf_idx[0]);

    if (!VAR_3) {

        put_ics_info(VAR_1, &VAR_2->ics);

        if (VAR_1->coder->encode_main_pred)

            VAR_1->coder->encode_main_pred(VAR_1, VAR_2);

    }

    encode_band_info(VAR_1, VAR_2);

    encode_scale_factors(VAR_0, VAR_1, VAR_2);

    encode_pulses(VAR_1, &VAR_2->pulse);

    if (VAR_1->coder->encode_tns_info)

        VAR_1->coder->encode_tns_info(VAR_1, VAR_2);

    else

        put_bits(&VAR_1->pb, 1, 0);

    put_bits(&VAR_1->pb, 1, 0); 

    encode_spectral_coeffs(VAR_1, VAR_2);

    return 0;

}

static int FUNC_0(AVCodecContext *VAR_0, AACEncContext *VAR_1,
SingleChannelElement *VAR_2,
int VAR_3)
{ put_bits(&VAR_1->pb, 8, VAR_2->sf_idx[0]); if (!VAR_3) { put_ics_info(VAR_1, &VAR_2->ics); if (VAR_1->coder->encode_main_pred)
VAR_1->coder->encode_main_pred(VAR_1, VAR_2); } encode_band_info(VAR_1, VAR_2); encode_scale_factors(VAR_0, VAR_1, VAR_2); encode_pulses(VAR_1, &VAR_2->pulse); if (VAR_1->coder->encode_tns_info)
VAR_1->coder->encode_tns_info(VAR_1, VAR_2); else
put_bits(&VAR_1->pb, 1, 0); put_bits(&VAR_1->pb, 1, 0); encode_spectral_coeffs(VAR_1, VAR_2); return 0; }