int ff_ps_apply(AVCodecContext *avctx, PSContext *ps, float L[2][38][64], float R[2][38][64], int top)

{

    float Lbuf[91][32][2];

    float Rbuf[91][32][2];

    const int len = 32;

    int is34 = ps->is34bands;



    top += NR_BANDS[is34] - 64;

    memset(ps->delay+top, 0, (NR_BANDS[is34] - top)*sizeof(ps->delay[0]));

    if (top < NR_ALLPASS_BANDS[is34])

        memset(ps->ap_delay + top, 0, (NR_ALLPASS_BANDS[is34] - top)*sizeof(ps->ap_delay[0]));



    hybrid_analysis(Lbuf, ps->in_buf, L, is34, len);

    decorrelation(ps, Rbuf, Lbuf, is34);

    stereo_processing(ps, Lbuf, Rbuf, is34);

    hybrid_synthesis(L, Lbuf, is34, len);

    hybrid_synthesis(R, Rbuf, is34, len);



    return 0;

}

int ff_ps_apply(AVCodecContext *avctx, PSContext *ps, float L[2][38][64], float R[2][38][64], int top)

{

    float Lbuf[91][32][2];

    float Rbuf[91][32][2];

    const int len = 32;

    int is34 = ps->is34bands;



    top += NR_BANDS[is34] - 64;

    memset(ps->delay+top, 0, (NR_BANDS[is34] - top)*sizeof(ps->delay[0]));

    if (top < NR_ALLPASS_BANDS[is34])

        memset(ps->ap_delay + top, 0, (NR_ALLPASS_BANDS[is34] - top)*sizeof(ps->ap_delay[0]));



    hybrid_analysis(Lbuf, ps->in_buf, L, is34, len);

    decorrelation(ps, Rbuf, Lbuf, is34);

    stereo_processing(ps, Lbuf, Rbuf, is34);

    hybrid_synthesis(L, Lbuf, is34, len);

    hybrid_synthesis(R, Rbuf, is34, len);



    return 0;

}

int FUNC_0(AVCodecContext *VAR_0, PSContext *VAR_1, float VAR_2[2][38][64], float VAR_3[2][38][64], int VAR_4)

{

    float VAR_5[91][32][2];

    float VAR_6[91][32][2];

    const int VAR_7 = 32;

    int VAR_8 = VAR_1->is34bands;



    VAR_4 += NR_BANDS[VAR_8] - 64;

    memset(VAR_1->delay+VAR_4, 0, (NR_BANDS[VAR_8] - VAR_4)*sizeof(VAR_1->delay[0]));

    if (VAR_4 < NR_ALLPASS_BANDS[VAR_8])

        memset(VAR_1->ap_delay + VAR_4, 0, (NR_ALLPASS_BANDS[VAR_8] - VAR_4)*sizeof(VAR_1->ap_delay[0]));



    hybrid_analysis(VAR_5, VAR_1->in_buf, VAR_2, VAR_8, VAR_7);

    decorrelation(VAR_1, VAR_6, VAR_5, VAR_8);

    stereo_processing(VAR_1, VAR_5, VAR_6, VAR_8);

    hybrid_synthesis(VAR_2, VAR_5, VAR_8, VAR_7);

    hybrid_synthesis(VAR_3, VAR_6, VAR_8, VAR_7);



    return 0;

}

int FUNC_0(AVCodecContext *VAR_0, PSContext *VAR_1, float VAR_2[2][38][64], float VAR_3[2][38][64], int VAR_4)
{ float VAR_5[91][32][2]; float VAR_6[91][32][2]; const int VAR_7 = 32; int VAR_8 = VAR_1->is34bands; VAR_4 += NR_BANDS[VAR_8] - 64; memset(VAR_1->delay+VAR_4, 0, (NR_BANDS[VAR_8] - VAR_4)*sizeof(VAR_1->delay[0])); if (VAR_4 < NR_ALLPASS_BANDS[VAR_8])
memset(VAR_1->ap_delay + VAR_4, 0, (NR_ALLPASS_BANDS[VAR_8] - VAR_4)*sizeof(VAR_1->ap_delay[0])); hybrid_analysis(VAR_5, VAR_1->in_buf, VAR_2, VAR_8, VAR_7); decorrelation(VAR_1, VAR_6, VAR_5, VAR_8); stereo_processing(VAR_1, VAR_5, VAR_6, VAR_8); hybrid_synthesis(VAR_2, VAR_5, VAR_8, VAR_7); hybrid_synthesis(VAR_3, VAR_6, VAR_8, VAR_7); return 0; }