]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix typo causing an endless loop
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 18 Feb 2009 22:19:23 +0000 (22:19 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 18 Feb 2009 22:19:23 +0000 (22:19 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8738 d7cf8633-e32d-0410-b094-e92efae38249

cap_ogg.c

index 479f42f2899700a1e815667e3adfb81ba4b2d8d3..00dc3cbb70cc7d9c2f5ff59ea7ec6c5a944eb64c 100644 (file)
--- a/cap_ogg.c
+++ b/cap_ogg.c
@@ -763,7 +763,7 @@ static void SCR_CaptureVideo_Ogg_EndVideo()
        if(format->yuvi >= 0)
        {
                // send the previous (and last) frame
-               while(format->lastnum > 0)
+               while(format->lastnum-- > 0)
                {
                        qtheora_encode_YUVin(&format->ts, &format->yuv[format->yuvi]);