]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
add some casts for g++
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 21 Feb 2009 19:13:28 +0000 (19:13 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 21 Feb 2009 19:13:28 +0000 (19:13 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8754 d7cf8633-e32d-0410-b094-e92efae38249

cap_ogg.c

index f9e0ab4e6b90cc0150977816de24323bb09788b6..adbe1bdc530f009f290fbee88838fc3e6fbaef4e 100644 (file)
--- 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