Commit 8cd68d80 authored by Oded Shimon's avatar Oded Shimon

ignore whitespace in ff_eval

Originally committed as revision 6821 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent b500cc2a
...@@ -382,9 +382,14 @@ AVEvalExpr * ff_parse(char *s, const char **const_name, ...@@ -382,9 +382,14 @@ AVEvalExpr * ff_parse(char *s, const char **const_name,
char **error){ char **error){
Parser p; Parser p;
AVEvalExpr * e; AVEvalExpr * e;
char w[strlen(s) + 1], * wp = w;
while (*s)
if (!isspace(*s++)) *wp++ = s[-1];
*wp++ = 0;
p.stack_index=100; p.stack_index=100;
p.s= s; p.s= w;
p.const_name = const_name; p.const_name = const_name;
p.func1 = func1; p.func1 = func1;
p.func1_name = func1_name; p.func1_name = func1_name;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment