X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=cap_avi.c;h=e7cf88d675f9cf363a5876d7c0b4f2fec8fcf8b5;hb=ed8d0725afa9ebc075da0df1306e1cc41bb56c2d;hp=1292f126fe3baf0de3ced74ae0c1f0583287c3d4;hpb=321a67123284c38c22f8edd418913615ee0c2682;p=xonotic%2Fdarkplaces.git diff --git a/cap_avi.c b/cap_avi.c index 1292f126..e7cf88d6 100644 --- a/cap_avi.c +++ b/cap_avi.c @@ -309,7 +309,8 @@ static void SCR_CaptureVideo_RIFF_Finish(qboolean final) static void SCR_CaptureVideo_RIFF_OverflowCheck(int framesize) { LOAD_FORMATSPECIFIC_AVI(); - fs_offset_t cursize, curfilesize; + fs_offset_t cursize; + //fs_offset_t curfilesize; if (format->riffstacklevel != 2) Sys_Error("SCR_CaptureVideo_RIFF_OverflowCheck: chunk stack leakage!\n"); @@ -319,7 +320,7 @@ static void SCR_CaptureVideo_RIFF_OverflowCheck(int framesize) // check where we are in the file SCR_CaptureVideo_RIFF_Flush(); cursize = SCR_CaptureVideo_RIFF_GetPosition() - format->riffstackstartoffset[0]; - curfilesize = SCR_CaptureVideo_RIFF_GetPosition(); + //curfilesize = SCR_CaptureVideo_RIFF_GetPosition(); // if this would overflow the windows limit of 1GB per RIFF chunk, we need // to close the current RIFF chunk and open another for future frames