changeset 6797:51bbc2f553e2 libavcodec

Update offset in the option string later, to have a better error message. Patch by Stefano Sabatini stefanoTODsabatini-lalaCHEZposteTODit
author benoit
date Wed, 14 May 2008 02:14:11 +0000
parents b03cd8d29d60
children b87b1aba5d89
files opt.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/opt.c	Tue May 13 18:10:15 2008 +0000
+++ b/opt.c	Wed May 14 02:14:11 2008 +0000
@@ -159,7 +159,6 @@
             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 @@
                 d= -d;
 
             av_set_number(obj, name, d, 1, 1);
+            val+= i;
             if(!*val)
                 return o;
         }