Fix JPEG compression for screenshots and mjpeg video recording with new JPG library

This commit is contained in:
Thilo Schulz committed 2011-03-17 16:00:45 +00:00
1 parent d3f8dffe39
commit 16b99e354b
4 files changed
+84 -161

No files matched your search

+3 -2
View File
@@ -368,8 +368,9 @@ qboolean CL_OpenAVIForWriting( const char *fileName )
else
afd.motionJpeg = qfalse;
afd.cBuffer = Z_Malloc( afd.width * afd.height * 4 );
afd.eBuffer = Z_Malloc( afd.width * afd.height * 4 );
// Buffers only need to store RGB pixels
afd.cBuffer = Z_Malloc(afd.width * afd.height * 3);
afd.eBuffer = Z_Malloc(afd.width * afd.height * 3);
afd.a.rate = dma.speed;
afd.a.format = WAV_FORMAT_PCM;