static int expand(AVFilterContext *ctx, double *pz, int nb, double *coeffs)

{

    int i;



    coeffs[0] = 1.0;

    coeffs[1] = 0.0;



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

        coeffs[2 * (i + 1)    ] = 0.0;

        coeffs[2 * (i + 1) + 1] = 0.0;

    }



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

        multiply(pz[2 * i], pz[2 * i + 1], nb, coeffs);



    for (i = 0; i < nb + 1; i++) {

        if (fabs(coeffs[2 * i + 1]) > DBL_EPSILON) {

            av_log(ctx, AV_LOG_ERROR, "coeff: %lf of z^%d is not real; poles/zeros are not complex conjugates.\n",

                   coeffs[2 * i + i], i);

            return AVERROR(EINVAL);

        }

    }



    return 0;

}

static int expand(AVFilterContext *ctx, double *pz, int nb, double *coeffs)

{

    int i;



    coeffs[0] = 1.0;

    coeffs[1] = 0.0;



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

        coeffs[2 * (i + 1)    ] = 0.0;

        coeffs[2 * (i + 1) + 1] = 0.0;

    }



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

        multiply(pz[2 * i], pz[2 * i + 1], nb, coeffs);



    for (i = 0; i < nb + 1; i++) {

        if (fabs(coeffs[2 * i + 1]) > DBL_EPSILON) {

            av_log(ctx, AV_LOG_ERROR, "coeff: %lf of z^%d is not real; poles/zeros are not complex conjugates.\n",

                   coeffs[2 * i + i], i);

            return AVERROR(EINVAL);

        }

    }



    return 0;

}

static int FUNC_0(AVFilterContext *VAR_0, double *VAR_1, int VAR_2, double *VAR_3)

{

    int VAR_4;



    VAR_3[0] = 1.0;

    VAR_3[1] = 0.0;



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

        VAR_3[2 * (VAR_4 + 1)    ] = 0.0;

        VAR_3[2 * (VAR_4 + 1) + 1] = 0.0;

    }



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

        multiply(VAR_1[2 * VAR_4], VAR_1[2 * VAR_4 + 1], VAR_2, VAR_3);



    for (VAR_4 = 0; VAR_4 < VAR_2 + 1; VAR_4++) {

        if (fabs(VAR_3[2 * VAR_4 + 1]) > DBL_EPSILON) {

            av_log(VAR_0, AV_LOG_ERROR, "coeff: %lf of z^%d is not real; poles/zeros are not complex conjugates.\n",

                   VAR_3[2 * VAR_4 + VAR_4], VAR_4);

            return AVERROR(EINVAL);

        }

    }



    return 0;

}

static int FUNC_0(AVFilterContext *VAR_0, double *VAR_1, int VAR_2, double *VAR_3)
{ int VAR_4; VAR_3[0] = 1.0; VAR_3[1] = 0.0; for (VAR_4 = 0; VAR_4 < VAR_2; VAR_4++) { VAR_3[2 * (VAR_4 + 1)    ] = 0.0; VAR_3[2 * (VAR_4 + 1) + 1] = 0.0; } for (VAR_4 = 0; VAR_4 < VAR_2; VAR_4++) multiply(VAR_1[2 * VAR_4], VAR_1[2 * VAR_4 + 1], VAR_2, VAR_3); for (VAR_4 = 0; VAR_4 < VAR_2 + 1; VAR_4++) { if (fabs(VAR_3[2 * VAR_4 + 1]) > DBL_EPSILON) { av_log(VAR_0, AV_LOG_ERROR, "coeff: %lf of z^%d is not real; poles/zeros are not complex conjugates.\n", VAR_3[2 * VAR_4 + VAR_4], VAR_4); return AVERROR(EINVAL); } } return 0; }