Commit 7971fa9c authored by Nicolas George's avatar Nicolas George Committed by Michael Niedermayer

lavd/xcbgrab: fix comparison with screen size.

Signed-off-by: 's avatarNicolas George <george@nsup.org>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 22a0387d
...@@ -533,8 +533,8 @@ static int create_stream(AVFormatContext *s) ...@@ -533,8 +533,8 @@ static int create_stream(AVFormatContext *s)
gc = xcb_get_geometry(c->conn, c->screen->root); gc = xcb_get_geometry(c->conn, c->screen->root);
geo = xcb_get_geometry_reply(c->conn, gc, NULL); geo = xcb_get_geometry_reply(c->conn, gc, NULL);
if (c->x + c->width >= geo->width || if (c->x + c->width > geo->width ||
c->y + c->height >= geo->height) { c->y + c->height > geo->height) {
av_log(s, AV_LOG_ERROR, av_log(s, AV_LOG_ERROR,
"Capture area %dx%d at position %d.%d " "Capture area %dx%d at position %d.%d "
"outside the screen size %dx%d\n", "outside the screen size %dx%d\n",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment