diff options
author | Oded Shimon <ods15@ods15.dyndns.org> | 2006-10-28 13:49:13 +0400 |
---|---|---|
committer | Oded Shimon <ods15@ods15.dyndns.org> | 2006-10-28 13:49:13 +0400 |
commit | 8cd68d805611c319ac0518769883ee2c9c75d211 (patch) | |
tree | 031920a32dbd8949fc2cb6d433610224f08ca2b8 /libavcodec/eval.c | |
parent | b500cc2a4696758c7e6dbfbc53c92321066cb2b4 (diff) |
ignore whitespace in ff_eval
Originally committed as revision 6821 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/eval.c')
-rw-r--r-- | libavcodec/eval.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libavcodec/eval.c b/libavcodec/eval.c index 9a86054c8a..4b5fdbd70a 100644 --- 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; |