]> git.sesse.net Git - ffmpeg/blobdiff - libavdevice/xcbgrab.c
avformat/mov: Mark avio context of decompressed atoms as seekable
[ffmpeg] / libavdevice / xcbgrab.c
index 15512cd15fa33e53fb3feb0059967f83e279dfe9..166575c9c2ccc3fd2365c1a5302b07abf7d05801 100644 (file)
@@ -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",