int ff_eval_refl(int *refl, const int16_t *coefs, AVCodecContext *avctx)

{

    int b, i, j;

    int buffer1[LPC_ORDER];

    int buffer2[LPC_ORDER];

    int *bp1 = buffer1;

    int *bp2 = buffer2;



    for (i=0; i < LPC_ORDER; i++)

        buffer2[i] = coefs[i];



    refl[LPC_ORDER-1] = bp2[LPC_ORDER-1];



    if ((unsigned) bp2[LPC_ORDER-1] + 0x1000 > 0x1fff) {

        av_log(avctx, AV_LOG_ERROR, "Overflow. Broken sample?\n");

        return 1;

    }



    for (i = LPC_ORDER-2; i >= 0; i--) {

        b = 0x1000-((bp2[i+1] * bp2[i+1]) >> 12);



        if (!b)

            b = -2;



        b = 0x1000000 / b;

        for (j=0; j <= i; j++) {

#if CONFIG_FTRAPV

            int a = bp2[j] - ((refl[i+1] * bp2[i-j]) >> 12);

            if((int)(a*(unsigned)b) != a*(int64_t)b)

                return 1;

#endif

            bp1[j] = ((bp2[j] - ((refl[i+1] * bp2[i-j]) >> 12)) * b) >> 12;

        }



        if ((unsigned) bp1[i] + 0x1000 > 0x1fff)

            return 1;



        refl[i] = bp1[i];



        FFSWAP(int *, bp1, bp2);

    }

    return 0;

}

int ff_eval_refl(int *refl, const int16_t *coefs, AVCodecContext *avctx)

{

    int b, i, j;

    int buffer1[LPC_ORDER];

    int buffer2[LPC_ORDER];

    int *bp1 = buffer1;

    int *bp2 = buffer2;



    for (i=0; i < LPC_ORDER; i++)

        buffer2[i] = coefs[i];



    refl[LPC_ORDER-1] = bp2[LPC_ORDER-1];



    if ((unsigned) bp2[LPC_ORDER-1] + 0x1000 > 0x1fff) {

        av_log(avctx, AV_LOG_ERROR, "Overflow. Broken sample?\n");

        return 1;

    }



    for (i = LPC_ORDER-2; i >= 0; i--) {

        b = 0x1000-((bp2[i+1] * bp2[i+1]) >> 12);



        if (!b)

            b = -2;



        b = 0x1000000 / b;

        for (j=0; j <= i; j++) {

#if CONFIG_FTRAPV

            int a = bp2[j] - ((refl[i+1] * bp2[i-j]) >> 12);

            if((int)(a*(unsigned)b) != a*(int64_t)b)

                return 1;

#endif

            bp1[j] = ((bp2[j] - ((refl[i+1] * bp2[i-j]) >> 12)) * b) >> 12;

        }



        if ((unsigned) bp1[i] + 0x1000 > 0x1fff)

            return 1;



        refl[i] = bp1[i];



        FFSWAP(int *, bp1, bp2);

    }

    return 0;

}

            bp1[j] = ((bp2[j] - ((refl[i+1] * bp2[i-j]) >> 12)) * b) >> 12;
int FUNC_0(int *VAR_0, const int16_t *VAR_1, AVCodecContext *VAR_2)

{

    int VAR_3, VAR_4, VAR_5;

    int VAR_6[LPC_ORDER];

    int VAR_7[LPC_ORDER];

    int *VAR_8 = VAR_6;

    int *VAR_9 = VAR_7;



    for (VAR_4=0; VAR_4 < LPC_ORDER; VAR_4++)

        VAR_7[VAR_4] = VAR_1[VAR_4];



    VAR_0[LPC_ORDER-1] = VAR_9[LPC_ORDER-1];



    if ((unsigned) VAR_9[LPC_ORDER-1] + 0x1000 > 0x1fff) {

        av_log(VAR_2, AV_LOG_ERROR, "Overflow. Broken sample?\n");

        return 1;

    }



    for (VAR_4 = LPC_ORDER-2; VAR_4 >= 0; VAR_4--) {

        VAR_3 = 0x1000-((VAR_9[VAR_4+1] * VAR_9[VAR_4+1]) >> 12);



        if (!VAR_3)

            VAR_3 = -2;



        VAR_3 = 0x1000000 / VAR_3;

        for (VAR_5=0; VAR_5 <= VAR_4; VAR_5++) {

#if CONFIG_FTRAPV

            int a = VAR_9[VAR_5] - ((VAR_0[VAR_4+1] * VAR_9[VAR_4-VAR_5]) >> 12);

            if((int)(a*(unsigned)VAR_3) != a*(int64_t)VAR_3)

                return 1;

#endif

            VAR_8[VAR_5] = ((VAR_9[VAR_5] - ((VAR_0[VAR_4+1] * VAR_9[VAR_4-VAR_5]) >> 12)) * VAR_3) >> 12;

        }



        if ((unsigned) VAR_8[VAR_4] + 0x1000 > 0x1fff)

            return 1;



        VAR_0[VAR_4] = VAR_8[VAR_4];



        FFSWAP(int *, VAR_8, VAR_9);

    }

    return 0;

}

int FUNC_0(int *VAR_0, const int16_t *VAR_1, AVCodecContext *VAR_2)
{ int VAR_3, VAR_4, VAR_5; int VAR_6[LPC_ORDER]; int VAR_7[LPC_ORDER]; int *VAR_8 = VAR_6; int *VAR_9 = VAR_7; for (VAR_4=0; VAR_4 < LPC_ORDER; VAR_4++) VAR_7[VAR_4] = VAR_1[VAR_4]; VAR_0[LPC_ORDER-1] = VAR_9[LPC_ORDER-1]; if ((unsigned) VAR_9[LPC_ORDER-1] + 0x1000 > 0x1fff) { av_log(VAR_2, AV_LOG_ERROR, "Overflow. Broken sample?\n"); return 1; } for (VAR_4 = LPC_ORDER-2; VAR_4 >= 0; VAR_4--) { VAR_3 = 0x1000-((VAR_9[VAR_4+1] * VAR_9[VAR_4+1]) >> 12); if (!VAR_3)
VAR_3 = -2; VAR_3 = 0x1000000 / VAR_3; for (VAR_5=0; VAR_5 <= VAR_4; VAR_5++) { #if CONFIG_FTRAPV
int a = VAR_9[VAR_5] - ((VAR_0[VAR_4+1] * VAR_9[VAR_4-VAR_5]) >> 12); if((int)(a*(unsigned)VAR_3) != a*(int64_t)VAR_3)
return 1; #endif
VAR_8[VAR_5] = ((VAR_9[VAR_5] - ((VAR_0[VAR_4+1] * VAR_9[VAR_4-VAR_5]) >> 12)) * VAR_3) >> 12; } if ((unsigned) VAR_8[VAR_4] + 0x1000 > 0x1fff)
return 1; VAR_0[VAR_4] = VAR_8[VAR_4]; FFSWAP(int *, VAR_8, VAR_9); } return 0; }