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

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

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;