[Ffmpeg-cvslog] r6821 - trunk/libavcodec/eval.c
ods15
subversion
Sat Oct 28 11:49:13 CEST 2006
Author: ods15
Date: Sat Oct 28 11:49:13 2006
New Revision: 6821
Modified:
trunk/libavcodec/eval.c
Log:
ignore whitespace in ff_evaL
Modified: trunk/libavcodec/eval.c
==============================================================================
--- trunk/libavcodec/eval.c (original)
+++ trunk/libavcodec/eval.c Sat Oct 28 11:49:13 2006
@@ -382,9 +382,14 @@
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;
More information about the ffmpeg-cvslog
mailing list