summaryrefslogtreecommitdiffstats
path: root/libavcodec/opt.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-05-16 23:00:22 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-05-16 23:00:22 +0000
commitedd259f92fa0856d5f7fbcf19704df95b58def7f (patch)
tree5e1ba47dad556c9c85aad12593cb268ba0705256 /libavcodec/opt.c
parentec1d1afc0953ceccc78069b3bc584ec8d29bdda7 (diff)
downloadffmpeg-streaming-edd259f92fa0856d5f7fbcf19704df95b58def7f.zip
ffmpeg-streaming-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/opt.c b/libavcodec/opt.c
index f9cba05..c32249e 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)
OpenPOWER on IntegriCloud