# HG changeset patch # User stefano # Date 1271100075 0 # Node ID ab7aceed5286eb61135fff298e258e2996dde362 # Parent 2c41284050cf50b92ff1cfc7db755822354570a7 Rename ff_parse() to ff_parse_expr(). The new name is more expressive and fits better in the overall naming scheme for the revisited eval API. diff -r 2c41284050cf -r ab7aceed5286 eval.c --- a/eval.c Mon Apr 12 19:21:08 2010 +0000 +++ b/eval.c Mon Apr 12 19:21:15 2010 +0000 @@ -369,7 +369,7 @@ } } -AVExpr * ff_parse(const char *s, const char * const *const_name, +AVExpr *ff_parse_expr(const char *s, const char * const *const_name, double (**func1)(void *, double), const char **func1_name, double (**func2)(void *, double, double), const char **func2_name, const char **error){ @@ -416,7 +416,7 @@ double (**func1)(void *, double), const char **func1_name, double (**func2)(void *, double, double), const char **func2_name, void *opaque, const char **error){ - AVExpr * e = ff_parse(s, const_name, func1, func1_name, func2, func2_name, error); + AVExpr * e = ff_parse_expr(s, const_name, func1, func1_name, func2, func2_name, error); double d; if (!e) return NAN; d = ff_eval_expr(e, const_value, opaque); diff -r 2c41284050cf -r ab7aceed5286 eval.h --- a/eval.h Mon Apr 12 19:21:08 2010 +0000 +++ b/eval.h Mon Apr 12 19:21:15 2010 +0000 @@ -61,7 +61,7 @@ * @return AVExpr which must be freed with ff_free_expr() by the user when it is not needed anymore * NULL if anything went wrong */ -AVExpr * ff_parse(const char *s, const char * const *const_name, +AVExpr *ff_parse_expr(const char *s, const char * const *const_name, double (**func1)(void *, double), const char **func1_name, double (**func2)(void *, double, double), const char **func2_name, const char **error); diff -r 2c41284050cf -r ab7aceed5286 ratecontrol.c --- a/ratecontrol.c Mon Apr 12 19:21:08 2010 +0000 +++ b/ratecontrol.c Mon Apr 12 19:21:15 2010 +0000 @@ -107,7 +107,7 @@ }; emms_c(); - rcc->rc_eq_eval = ff_parse(s->avctx->rc_eq ? s->avctx->rc_eq : "tex^qComp", const_names, func1, func1_names, NULL, NULL, &error); + rcc->rc_eq_eval = ff_parse_expr(s->avctx->rc_eq ? s->avctx->rc_eq : "tex^qComp", const_names, func1, func1_names, NULL, NULL, &error); if (!rcc->rc_eq_eval) { av_log(s->avctx, AV_LOG_ERROR, "Error parsing rc_eq \"%s\": %s\n", s->avctx->rc_eq, error? error : ""); return -1;