OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f79b4e
)
Update offset in the option string later, to have a better error message.
author
Stefano Sabatini
<stefano.sabatini-lala@poste.it>
Wed, 14 May 2008 02:14:11 +0000
(
02:14
+0000)
committer
Benoit Fouet
<benoit.fouet@free.fr>
Wed, 14 May 2008 02:14:11 +0000
(
02:14
+0000)
Patch by Stefano Sabatini stefanoTODsabatini-lalaCHEZposteTODit
Originally committed as revision 13153 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/opt.c
patch
|
blob
|
history
diff --git
a/libavcodec/opt.c
b/libavcodec/opt.c
index
7e0f527
..
d8b1b0d
100644
(file)
--- 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;
}