From: divverent Date: Sat, 21 Feb 2009 19:13:28 +0000 (+0000) Subject: add some casts for g++ X-Git-Tag: xonotic-v0.1.0preview~1841 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6af1d04d2bd7a2e8c8a4163a14e8e6f8bd37685a;p=xonotic%2Fdarkplaces.git add some casts for g++ git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8754 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cap_ogg.c b/cap_ogg.c index f9e0ab4e..adbe1bdc 100644 --- a/cap_ogg.c +++ b/cap_ogg.c @@ -981,9 +981,9 @@ void SCR_CaptureVideo_Ogg_BeginVideo() format->yuv[i].uv_width = ti.width / 2; format->yuv[i].uv_height = ti.height / 2; format->yuv[i].uv_stride = ti.width / 2; - format->yuv[i].y = Mem_Alloc(tempmempool, format->yuv[i].y_stride * format->yuv[i].y_height); - format->yuv[i].u = Mem_Alloc(tempmempool, format->yuv[i].uv_stride * format->yuv[i].uv_height); - format->yuv[i].v = Mem_Alloc(tempmempool, format->yuv[i].uv_stride * format->yuv[i].uv_height); + format->yuv[i].y = (unsigned char *) Mem_Alloc(tempmempool, format->yuv[i].y_stride * format->yuv[i].y_height); + format->yuv[i].u = (unsigned char *) Mem_Alloc(tempmempool, format->yuv[i].uv_stride * format->yuv[i].uv_height); + format->yuv[i].v = (unsigned char *) Mem_Alloc(tempmempool, format->yuv[i].uv_stride * format->yuv[i].uv_height); } format->yuvi = -1; // -1: no frame valid yet, write into 0