static int set_expr(AVExpr **pexpr, const char *expr, void *log_ctx)

{

    int ret;

    AVExpr *old = NULL;



    if (*pexpr)

        old = *pexpr;

    ret = av_expr_parse(pexpr, expr, var_names,

                        NULL, NULL, NULL, NULL, 0, log_ctx);

    if (ret < 0) {

        av_log(log_ctx, AV_LOG_ERROR,

               "Error when evaluating the expression '%s'\n", expr);

        *pexpr = old;

        return ret;

    }



    av_expr_free(old);

    return 0;

}

static int set_expr(AVExpr **pexpr, const char *expr, void *log_ctx)

{

    int ret;

    AVExpr *old = NULL;



    if (*pexpr)

        old = *pexpr;

    ret = av_expr_parse(pexpr, expr, var_names,

                        NULL, NULL, NULL, NULL, 0, log_ctx);

    if (ret < 0) {

        av_log(log_ctx, AV_LOG_ERROR,

               "Error when evaluating the expression '%s'\n", expr);

        *pexpr = old;

        return ret;

    }



    av_expr_free(old);

    return 0;

}

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

{

    int VAR_3;

    AVExpr *old = NULL;



    if (*VAR_0)

        old = *VAR_0;

    VAR_3 = av_expr_parse(VAR_0, VAR_1, var_names,

                        NULL, NULL, NULL, NULL, 0, VAR_2);

    if (VAR_3 < 0) {

        av_log(VAR_2, AV_LOG_ERROR,

               "Error when evaluating the expression '%s'\n", VAR_1);

        *VAR_0 = old;

        return VAR_3;

    }



    av_expr_free(old);

    return 0;

}

static int FUNC_0(AVExpr **VAR_0, const char *VAR_1, void *VAR_2)
{ int VAR_3; AVExpr *old = NULL; if (*VAR_0)
old = *VAR_0; VAR_3 = av_expr_parse(VAR_0, VAR_1, var_names,
NULL, NULL, NULL, NULL, 0, VAR_2); if (VAR_3 < 0) { av_log(VAR_2, AV_LOG_ERROR,
"Error when evaluating the expression '%s'\n", VAR_1); *VAR_0 = old; return VAR_3; } av_expr_free(old); return 0; }