changeset 4095:fda3ec8e96e1 libavcodec

ignore whitespace in ff_eval
author ods15
date Sat, 28 Oct 2006 09:49:13 +0000
parents f812a11be0b1
children 99616a74260a
files eval.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/eval.c	Sat Oct 28 09:30:43 2006 +0000
+++ b/eval.c	Sat Oct 28 09:49:13 2006 +0000
@@ -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;