Mercurial > libavcodec.hg
diff opt.c @ 11739:ceffa0ca7596 libavcodec
Change the order of parameters for ff_eval_expr() and
ff_parse_and_eval_expr(), place the names for constants/functions
before the corresponding values.
This looks more readable, as the user is expected to know the names
before the values.
author | stefano |
---|---|
date | Sun, 16 May 2010 23:00:22 +0000 |
parents | 7dd2a45249a9 |
children | c6368258b694 |
line wrap: on
line diff
--- a/opt.c Sun May 16 21:03:08 2010 +0000 +++ b/opt.c Sun May 16 23:00:22 2010 +0000 @@ -156,7 +156,7 @@ buf[i]= val[i]; buf[i]=0; - d = ff_parse_and_eval_expr(buf, const_values, const_names, NULL, NULL, NULL, NULL, NULL, &error); + d = ff_parse_and_eval_expr(buf, const_names, const_values, NULL, NULL, NULL, NULL, NULL, &error); if(isnan(d)) { const AVOption *o_named= av_find_opt(obj, buf, o->unit, 0, 0); if(o_named && o_named->type == FF_OPT_TYPE_CONST)