History

lavd/xcbgrab: fix comparison with screen size.

Nicolas George committed 11 years ago

Commit 7971fa91 parent 22a03871 file · +2 −2Browse files

Unified · Split

libavdevice/xcbgrab.c+2−2
@@ -533,8 +533,8 @@ static int create_stream(AVFormatContext *s) · 532 unmodified lines
533533 gc = xcb_get_geometry(c->conn, c->screen->root);
534534 geo = xcb_get_geometry_reply(c->conn, gc, NULL);
535535
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) {
538538 av_log(s, AV_LOG_ERROR,
539539 "Capture area %dx%d at position %d.%d "
540540 "outside the screen size %dx%d\n",

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t