Showing the changes to libavdevice (1 of 1 file). Show all
Unified · Split
| @@ -533,8 +533,8 @@ static int create_stream(AVFormatContext *s) · 532 unmodified lines | ||
| 533 | 533 | gc = xcb_get_geometry(c->conn, c->screen->root); |
| 534 | 534 | geo = xcb_get_geometry_reply(c->conn, gc, NULL); |
| 535 | 535 | |
| 536 | − if (c->x + c->width >= geo->width || | |
| 537 | − c->y + c->height >= geo->height) { | |
| 536 | + if (c->x + c->width > geo->width || | |
| 537 | + c->y + c->height > geo->height) { | |
| 538 | 538 | av_log(s, AV_LOG_ERROR, |
| 539 | 539 | "Capture area %dx%d at position %d.%d " |
| 540 | 540 | "outside the screen size %dx%d\n", |