X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=cap_ogg.c;fp=cap_ogg.c;h=609947ca3d02a32fc6f23b7eff8daec98c18ef62;hp=eef3f90d6e3503b5febb2172d58ca318915a6389;hb=17f11d9577883fb59f2175b92d88d0d3323ad025;hpb=51060d945ef856d4f54728526df21c551b8e4dcf diff --git a/cap_ogg.c b/cap_ogg.c index eef3f90d..609947ca 100644 --- a/cap_ogg.c +++ b/cap_ogg.c @@ -847,7 +847,7 @@ static void SCR_CaptureVideo_Ogg_ConvertFrame_BGRA_to_YUV(void) b += 4; } - if((y & 1) == 0) + if ((y & 1) == 0 && y/2 < h/2) // if h is odd, this skips the last row { for(b = cls.capturevideo.outbuffer + (h-2-y)*w*4, x = 0; x < w/2; ++x) {