Ticket #4574: fullscreen.patch

File fullscreen.patch, 676 bytes (added by es, 11 years ago)
  • libavdevice/xcbgrab.c

    diff -rupN c/libavdevice/xcbgrab.c b/libavdevice/xcbgrab.c
    c b static int create_stream(AVFormatContext  
    532532    gc  = xcb_get_geometry(c->conn, c->screen->root);
    533533    geo = xcb_get_geometry_reply(c->conn, gc, NULL);
    534534
    535     if (c->x + c->width >= geo->width ||
    536         c->y + c->height >= geo->height) {
     535    if (c->x + c->width > geo->width ||
     536        c->y + c->height > geo->height) {
    537537        av_log(s, AV_LOG_ERROR,
    538538               "Capture area %dx%d at position %d.%d "
    539539               "outside the screen size %dx%d\n",