]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cap_avi.c
libogg sucks. Really does. Work around one of its shortcomings by storing the page...
[xonotic/darkplaces.git] / cap_avi.c
index df75c7d32eb7b9cc875b0cc8e234f1b35cf0f34a..e9b0d286147b9768db67aa06cd4fef3b35b9840f 100644 (file)
--- a/cap_avi.c
+++ b/cap_avi.c
@@ -493,7 +493,8 @@ void SCR_CaptureVideo_Avi_BeginVideo()
        aspect = vid.width / (vid.height * vid_pixelheight.value);
 
        cls.capturevideo.format = CAPTUREVIDEOFORMAT_AVI_I420;
-       cls.capturevideo.videofile = FS_OpenRealFile(va("%s.avi", cls.capturevideo.basename), "wb", false);
+       cls.capturevideo.formatextension = "avi";
+       cls.capturevideo.videofile = FS_OpenRealFile(va("%s.%s", cls.capturevideo.basename, cls.capturevideo.formatextension), "wb", false);
        cls.capturevideo.endvideo = SCR_CaptureVideo_Avi_EndVideo;
        cls.capturevideo.videoframes = SCR_CaptureVideo_Avi_VideoFrames;
        cls.capturevideo.soundframe = SCR_CaptureVideo_Avi_SoundFrame;