summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2008-05-24 20:40:01 +0000
committerVitor Sessak <vitor1001@gmail.com>2008-05-24 20:40:01 +0000
commit8095a014a064979616afc80330df3b595a56dd41 (patch)
treee1f686daee1c82c5960bf6c387600323c5c8073f /libavfilter
parent7a57c8d9adf45c6665f121113c8d439343dc089c (diff)
Even more improvements on whitespaces handling
Commited in SoC by Vitor Sessak on 2008-04-12 10:37:15 Originally committed as revision 13310 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/graphparser.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c
index 7c19dbbdc8..3d002abd0e 100644
--- a/libavfilter/graphparser.c
+++ b/libavfilter/graphparser.c
@@ -233,15 +233,17 @@ static int parse_inouts(const char **buf, AVFilterInOut **inout, int pad,
inoutn->pad_idx = pad++;
inoutn->next = *inout;
*inout = inoutn;
+ consume_whitespace(buf);
}
return pad;
}
static const char *skip_inouts(const char *buf)
{
- while (*buf == '[')
+ while (*buf == '[') {
buf += strcspn(buf, "]") + 1;
-
+ consume_whitespace(&buf);
+ }
return buf;
}