From 30765cee4b9bb4f0e189023788088d48a9bed7a0 Mon Sep 17 00:00:00 2001 From: divverent Date: Sun, 14 Aug 2011 18:40:27 +0000 Subject: [PATCH] fix a wrong variable name git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11273 d7cf8633-e32d-0410-b094-e92efae38249 --- cap_avi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cap_avi.c b/cap_avi.c index e1b9e9a4..e1c0e939 100644 --- a/cap_avi.c +++ b/cap_avi.c @@ -352,7 +352,7 @@ static void SCR_CaptureVideo_ConvertFrame_BGRA_to_I420_flip(int width, int heigh blockb = b[0]; *out = cls.capturevideo.yuvnormalizetable[0][cls.capturevideo.rgbtoyuvscaletable[0][0][blockr] + cls.capturevideo.rgbtoyuvscaletable[0][1][blockg] + cls.capturevideo.rgbtoyuvscaletable[0][2][blockb]]; } - if ((y & 1) == 0 && y/2 < h/2) // if h is odd, this skips the last row + if ((y & 1) == 0 && y/2 < height/2) // if h is odd, this skips the last row { // 2x2 Cr and Cb planes int inpitch = width*4; -- 2.39.2