int ff_parse_packing_format(int *ret, const char *arg, void *log_ctx)

{

    char *tail;

    int planar = strtol(arg, &tail, 10);

    if (*tail) {

        planar = (strcmp(arg, "packed") != 0);

    } else if (planar != 0 && planar != 1) {

        av_log(log_ctx, AV_LOG_ERROR, "Invalid packing format '%s'\n", arg);

        return AVERROR(EINVAL);

    }

    *ret = planar;

    return 0;

}

int ff_parse_packing_format(int *ret, const char *arg, void *log_ctx)

{

    char *tail;

    int planar = strtol(arg, &tail, 10);

    if (*tail) {

        planar = (strcmp(arg, "packed") != 0);

    } else if (planar != 0 && planar != 1) {

        av_log(log_ctx, AV_LOG_ERROR, "Invalid packing format '%s'\n", arg);

        return AVERROR(EINVAL);

    }

    *ret = planar;

    return 0;

}

int FUNC_0(int *VAR_0, const char *VAR_1, void *VAR_2)

{

    char *VAR_3;

    int VAR_4 = strtol(VAR_1, &VAR_3, 10);

    if (*VAR_3) {

        VAR_4 = (strcmp(VAR_1, "packed") != 0);

    } else if (VAR_4 != 0 && VAR_4 != 1) {

        av_log(VAR_2, AV_LOG_ERROR, "Invalid packing format '%s'\n", VAR_1);

        return AVERROR(EINVAL);

    }

    *VAR_0 = VAR_4;

    return 0;

}

int FUNC_0(int *VAR_0, const char *VAR_1, void *VAR_2)
{ char *VAR_3; int VAR_4 = strtol(VAR_1, &VAR_3, 10); if (*VAR_3) { VAR_4 = (strcmp(VAR_1, "packed") != 0); } else if (VAR_4 != 0 && VAR_4 != 1) { av_log(VAR_2, AV_LOG_ERROR, "Invalid packing format '%s'\n", VAR_1); return AVERROR(EINVAL); } *VAR_0 = VAR_4; return 0; }