aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2008-05-14 02:14:11 +0000
committerBenoit Fouet <benoit.fouet@free.fr>2008-05-14 02:14:11 +0000
commit9203741a46b09bfc027c4f6aa4f354fcf87cfe9c (patch)
treec67fa5893f71b809caddfde2a9962a7e65989a40
parent2f79b4e8afb0782473d377d560a1ca87b2bb583b (diff)
downloadffmpeg-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.c2
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;
}