double parse_number_or_die(const char *context, const char *numstr, int type,

                           double min, double max)

{

    char *tail;

    const char *error;

    double d = av_strtod(numstr, &tail);

    if (*tail)

        error = "Expected number for %s but found: %s\n";

    else if (d < min || d > max)

        error = "The value for %s was %s which is not within %f - %f\n";

    else if (type == OPT_INT64 && (int64_t)d != d)

        error = "Expected int64 for %s but found %s\n";

    else if (type == OPT_INT && (int)d != d)

        error = "Expected int for %s but found %s\n";

    else

        return d;

    av_log(NULL, AV_LOG_FATAL, error, context, numstr, min, max);

    exit(1);

    return 0;

}

double parse_number_or_die(const char *context, const char *numstr, int type,

                           double min, double max)

{

    char *tail;

    const char *error;

    double d = av_strtod(numstr, &tail);

    if (*tail)

        error = "Expected number for %s but found: %s\n";

    else if (d < min || d > max)

        error = "The value for %s was %s which is not within %f - %f\n";

    else if (type == OPT_INT64 && (int64_t)d != d)

        error = "Expected int64 for %s but found %s\n";

    else if (type == OPT_INT && (int)d != d)

        error = "Expected int for %s but found %s\n";

    else

        return d;

    av_log(NULL, AV_LOG_FATAL, error, context, numstr, min, max);

    exit(1);

    return 0;

}

    exit(1);     exit(1);
double FUNC_0(const char *VAR_0, const char *VAR_1, int VAR_2,

                           double VAR_3, double VAR_4)

{

    char *VAR_5;

    const char *VAR_6;

    double VAR_7 = av_strtod(VAR_1, &VAR_5);

    if (*VAR_5)

        VAR_6 = "Expected number for %s but found: %s\n";

    else if (VAR_7 < VAR_3 || VAR_7 > VAR_4)

        VAR_6 = "The value for %s was %s which is not within %f - %f\n";

    else if (VAR_2 == OPT_INT64 && (int64_t)VAR_7 != VAR_7)

        VAR_6 = "Expected int64 for %s but found %s\n";

    else if (VAR_2 == OPT_INT && (int)VAR_7 != VAR_7)

        VAR_6 = "Expected int for %s but found %s\n";

    else

        return VAR_7;

    av_log(NULL, AV_LOG_FATAL, VAR_6, VAR_0, VAR_1, VAR_3, VAR_4);

    exit(1);

    return 0;

}

double FUNC_0(const char *VAR_0, const char *VAR_1, int VAR_2,
double VAR_3, double VAR_4)
{ char *VAR_5; const char *VAR_6; double VAR_7 = av_strtod(VAR_1, &VAR_5); if (*VAR_5)
VAR_6 = "Expected number for %s but found: %s\n"; else if (VAR_7 < VAR_3 || VAR_7 > VAR_4)
VAR_6 = "The value for %s was %s which is not within %f - %f\n"; else if (VAR_2 == OPT_INT64 && (int64_t)VAR_7 != VAR_7)
VAR_6 = "Expected int64 for %s but found %s\n"; else if (VAR_2 == OPT_INT && (int)VAR_7 != VAR_7)
VAR_6 = "Expected int for %s but found %s\n"; else
return VAR_7; av_log(NULL, AV_LOG_FATAL, VAR_6, VAR_0, VAR_1, VAR_3, VAR_4); exit(1); return 0; }