[Ffmpeg-devel] [PATCH] ignore whitespace for eval
Oded Shimon
ods15
Sat Oct 28 09:57:51 CEST 2006
$subj
- ods15
-------------- next part --------------
Index: libavcodec/eval.c
===================================================================
--- libavcodec/eval.c (revision 6818)
+++ libavcodec/eval.c (working copy)
@@ -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-devel
mailing list