OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b500cc2
)
ignore whitespace in ff_eval
author
Oded Shimon
<ods15@ods15.dyndns.org>
Sat, 28 Oct 2006 09:49:13 +0000
(09:49 +0000)
committer
Oded Shimon
<ods15@ods15.dyndns.org>
Sat, 28 Oct 2006 09:49:13 +0000
(09:49 +0000)
Originally committed as revision 6821 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/eval.c
patch
|
blob
|
history
diff --git
a/libavcodec/eval.c
b/libavcodec/eval.c
index
9a86054
..
4b5fdbd
100644
(file)
--- a/
libavcodec/eval.c
+++ b/
libavcodec/eval.c
@@
-382,9
+382,14
@@
AVEvalExpr * ff_parse(char *s, const char **const_name,
char **error){
Parser p;
AVEvalExpr * e;
+ char w[strlen(s) + 1], * wp = w;
+
+ while (*s)
+ if (!isspace(*s++)) *wp++ = s[-1];
+ *wp++ = 0;
p.stack_index=100;
- p.s=
s
;
+ p.s=
w
;
p.const_name = const_name;
p.func1 = func1;
p.func1_name = func1_name;