diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2008-05-14 02:14:11 +0000 |
---|---|---|
committer | Benoit Fouet <benoit.fouet@free.fr> | 2008-05-14 02:14:11 +0000 |
commit | 9203741a46b09bfc027c4f6aa4f354fcf87cfe9c (patch) | |
tree | c67fa5893f71b809caddfde2a9962a7e65989a40 | |
parent | 2f79b4e8afb0782473d377d560a1ca87b2bb583b (diff) | |
download | ffmpeg-9203741a46b09bfc027c4f6aa4f354fcf87cfe9c.tar.gz |
Update offset in the option string later, to have a better error message.
Patch by Stefano Sabatini stefanoTODsabatini-lalaCHEZposteTODit
Originally committed as revision 13153 to svn://svn.ffmpeg.org/ffmpeg/trunk
-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 7e0f527350..d8b1b0de06 100644 --- a/libavcodec/opt.c +++ b/libavcodec/opt.c @@ -159,7 +159,6 @@ const AVOption *av_set_string(void *obj, const char *name, const char *val){ for(i=0; i<sizeof(buf)-1 && val[i] && val[i]!='+' && val[i]!='-'; i++) buf[i]= val[i]; buf[i]=0; - val+= i; d = ff_eval2(buf, const_values, const_names, NULL, NULL, NULL, NULL, NULL, &error); if(isnan(d)) { @@ -184,6 +183,7 @@ const AVOption *av_set_string(void *obj, const char *name, const char *val){ d= -d; av_set_number(obj, name, d, 1, 1); + val+= i; if(!*val) return o; } |