static void opt_frame_aspect_ratio(const char *arg)

{

    int x = 0, y = 0;

    double ar = 0;

    const char *p;

    char *end;



    p = strchr(arg, ':');

    if (p) {

        x = strtol(arg, &end, 10);

        if (end == p)

            y = strtol(end+1, &end, 10);

        if (x > 0 && y > 0)

            ar = (double)x / (double)y;

    } else

        ar = strtod(arg, NULL);



    if (!ar) {

        fprintf(stderr, "Incorrect aspect ratio specification.\n");

        ffmpeg_exit(1);

    }

    frame_aspect_ratio = ar;



    x = vfilters ? strlen(vfilters) : 0;

    vfilters = av_realloc(vfilters, x+100);

    snprintf(vfilters+x, x+100, "%csetdar=%f\n", x?',':' ', ar);

}

static void opt_frame_aspect_ratio(const char *arg)

{

    int x = 0, y = 0;

    double ar = 0;

    const char *p;

    char *end;



    p = strchr(arg, ':');

    if (p) {

        x = strtol(arg, &end, 10);

        if (end == p)

            y = strtol(end+1, &end, 10);

        if (x > 0 && y > 0)

            ar = (double)x / (double)y;

    } else

        ar = strtod(arg, NULL);



    if (!ar) {

        fprintf(stderr, "Incorrect aspect ratio specification.\n");

        ffmpeg_exit(1);

    }

    frame_aspect_ratio = ar;



    x = vfilters ? strlen(vfilters) : 0;

    vfilters = av_realloc(vfilters, x+100);

    snprintf(vfilters+x, x+100, "%csetdar=%f\n", x?',':' ', ar);

}

    x = vfilters ? strlen(vfilters) : 0;     vfilters = av_realloc(vfilters, x+100);     snprintf(vfilters+x, x+100, "%csetdar=%f\n", x?',':' ', ar);
static void FUNC_0(const char *VAR_0)

{

    int VAR_1 = 0, VAR_2 = 0;

    double VAR_3 = 0;

    const char *VAR_4;

    char *VAR_5;



    VAR_4 = strchr(VAR_0, ':');

    if (VAR_4) {

        VAR_1 = strtol(VAR_0, &VAR_5, 10);

        if (VAR_5 == VAR_4)

            VAR_2 = strtol(VAR_5+1, &VAR_5, 10);

        if (VAR_1 > 0 && VAR_2 > 0)

            VAR_3 = (double)VAR_1 / (double)VAR_2;

    } else

        VAR_3 = strtod(VAR_0, NULL);



    if (!VAR_3) {

        fprintf(stderr, "Incorrect aspect ratio specification.\n");

        ffmpeg_exit(1);

    }

    frame_aspect_ratio = VAR_3;



    VAR_1 = vfilters ? strlen(vfilters) : 0;

    vfilters = av_realloc(vfilters, VAR_1+100);

    snprintf(vfilters+VAR_1, VAR_1+100, "%csetdar=%f\n", VAR_1?',':' ', VAR_3);

}

static void FUNC_0(const char *VAR_0)
{ int VAR_1 = 0, VAR_2 = 0; double VAR_3 = 0; const char *VAR_4; char *VAR_5; VAR_4 = strchr(VAR_0, ':'); if (VAR_4) { VAR_1 = strtol(VAR_0, &VAR_5, 10); if (VAR_5 == VAR_4)
VAR_2 = strtol(VAR_5+1, &VAR_5, 10); if (VAR_1 > 0 && VAR_2 > 0)
VAR_3 = (double)VAR_1 / (double)VAR_2; } else VAR_3 = strtod(VAR_0, NULL); if (!VAR_3) { fprintf(stderr, "Incorrect aspect ratio specification.\n"); ffmpeg_exit(1); } frame_aspect_ratio = VAR_3; VAR_1 = vfilters ? strlen(vfilters) : 0; vfilters = av_realloc(vfilters, VAR_1+100); snprintf(vfilters+VAR_1, VAR_1+100, "%csetdar=%f\n", VAR_1?',':' ', VAR_3); }