summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.c b/main.c
index 9952a60..d156d2a 100644
--- a/main.c
+++ b/main.c
@@ -272,6 +272,8 @@ static struct media_entity_pad *parse_pad_format(struct media_device *media,
if (*p++ != '[')
return NULL;
+ for (; isspace(*p); ++p);
+
if (isalnum(*p)) {
ret = parse_format(format, p, &end);
if (ret < 0)