diff options
author | Nicolas George <george@nsup.org> | 2015-05-06 11:53:19 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-05-06 13:33:17 +0200 |
commit | 7971fa9ce0ead8d2e8a79dbe422e91dcef8222ba (patch) | |
tree | 4a0392d3a46d6c706060a45b7acdbab5921aa806 /libavdevice | |
parent | 22a0387df29c7450f57d09fbb24b7bc5f3b1fb89 (diff) | |
download | ffmpeg-7971fa9ce0ead8d2e8a79dbe422e91dcef8222ba.tar.gz |
lavd/xcbgrab: fix comparison with screen size.
Signed-off-by: Nicolas George <george@nsup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavdevice')
-rw-r--r-- | libavdevice/xcbgrab.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavdevice/xcbgrab.c b/libavdevice/xcbgrab.c index 15512cd15f..166575c9c2 100644 --- a/libavdevice/xcbgrab.c +++ b/libavdevice/xcbgrab.c @@ -533,8 +533,8 @@ static int create_stream(AVFormatContext *s) gc = xcb_get_geometry(c->conn, c->screen->root); geo = xcb_get_geometry_reply(c->conn, gc, NULL); - if (c->x + c->width >= geo->width || - c->y + c->height >= geo->height) { + if (c->x + c->width > geo->width || + c->y + c->height > geo->height) { av_log(s, AV_LOG_ERROR, "Capture area %dx%d at position %d.%d " "outside the screen size %dx%d\n", |