summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-02-20 17:17:15 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-02-20 17:17:15 +0200
commit8793e1eb48efb0c969578d6639aade32ec1c879a (patch)
treee2fb03d0a19c7dc3e9e5fd2463d95cb5a622011e
parent6a58d845baae5f55464127809651e567045b98e4 (diff)
Fix control array parsing
Commit 4480b561404f ("Implement compound control set support") didn't properly parse control array values. Fix it. Fixes: 4480b561404f ("Implement compound control set support") Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r--yavta.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/yavta.c b/yavta.c
index 86447f3..bcdcddb 100644
--- a/yavta.c
+++ b/yavta.c
@@ -1505,9 +1505,10 @@ static int video_parse_control_array(const struct v4l2_query_ext_ctrl *query,
val = endptr;
for ( ; isspace(*val); ++val) { };
- if (*val++ != ',')
+ if (*val != ',')
break;
- }
+ val++;
+ }
if (i < query->elems - 1)
return -EINVAL;