]> git.sesse.net Git - ffmpeg/blobdiff - libavdevice/xcbgrab.c
lavd/avfoundation: Support muxed type of devices including raw muxed data capture.
[ffmpeg] / libavdevice / xcbgrab.c
index 6d142abd4fd3a94c535f0d3ae96ba54d4a1a70b3..b7e689343e0a2a8217019d9f0c4bb884fd454b87 100644 (file)
@@ -127,7 +127,7 @@ static int xcbgrab_reposition(AVFormatContext *s,
         int left   = x + f;
         int right  = x + w - f;
         int top    = y + f;
-        int bottom = y + h + f;
+        int bottom = y + h - f;
         if (p_x > right) {
             x += p_x - right;
         } else if (p_x < left) {