summaryrefslogtreecommitdiff
path: root/v4l2-drm-example
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2013-02-24 08:46:50 +0100
committerTomasz Stanislawski <t.stanislaws@samsung.com>2013-03-13 10:49:34 +0100
commit2616e91517670a502ceffd976df3160982050c93 (patch)
treeab2b3033f794044eefed231b022f0b6052fcc662 /v4l2-drm-example
parent01810822c56591c22a11870573211af2b8b8b46e (diff)
v4l2-drm-example: Fix rectangle parsing
The left and top coordinates are parsed in the wrong order. Fix this. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'v4l2-drm-example')
-rw-r--r--v4l2-drm-example/dmabuf-sharing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/v4l2-drm-example/dmabuf-sharing.c b/v4l2-drm-example/dmabuf-sharing.c
index 6f21de2..7577a6e 100644
--- a/v4l2-drm-example/dmabuf-sharing.c
+++ b/v4l2-drm-example/dmabuf-sharing.c
@@ -145,7 +145,7 @@ static void usage(char *name)
static inline int parse_rect(char *s, struct v4l2_rect *r)
{
return sscanf(s, "%d,%d@%d,%d", &r->width, &r->height,
- &r->top, &r->left) != 4;
+ &r->left, &r->top) != 4;
}
static int parse_args(int argc, char *argv[], struct setup *s)