mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
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
This commit is contained in:
parent
2f79b4e8af
commit
9203741a46
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user