X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavdevice%2Fxcbgrab.c;h=b7e689343e0a2a8217019d9f0c4bb884fd454b87;hb=0f0f5188acc67a35a8f045505ccf6e2178e5f858;hp=6d142abd4fd3a94c535f0d3ae96ba54d4a1a70b3;hpb=5ab44ff20cdc0e05adecbd0cd352d25fcb930094;p=ffmpeg diff --git a/libavdevice/xcbgrab.c b/libavdevice/xcbgrab.c index 6d142abd4fd..b7e689343e0 100644 --- a/libavdevice/xcbgrab.c +++ b/libavdevice/xcbgrab.c @@ -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) {