ignore whitespace in ff_eval
Originally committed as revision 6821 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
b500cc2a46
commit
8cd68d8056
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user