diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-05-16 23:00:22 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-05-16 23:00:22 +0000 |
commit | edd259f92fa0856d5f7fbcf19704df95b58def7f (patch) | |
tree | 5e1ba47dad556c9c85aad12593cb268ba0705256 /libavcodec/opt.c | |
parent | ec1d1afc0953ceccc78069b3bc584ec8d29bdda7 (diff) | |
download | ffmpeg-edd259f92fa0856d5f7fbcf19704df95b58def7f.tar.gz |
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.
Originally committed as revision 23149 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/opt.c')
-rw-r--r-- | libavcodec/opt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/opt.c b/libavcodec/opt.c index f9cba05759..c32249eef6 100644 --- a/libavcodec/opt.c +++ b/libavcodec/opt.c @@ -156,7 +156,7 @@ int av_set_string3(void *obj, const char *name, const char *val, int alloc, cons 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) |