diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-02-20 17:17:15 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-02-20 17:17:15 +0200 |
commit | 8793e1eb48efb0c969578d6639aade32ec1c879a (patch) | |
tree | e2fb03d0a19c7dc3e9e5fd2463d95cb5a622011e | |
parent | 6a58d845baae5f55464127809651e567045b98e4 (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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; |