Fix JPEG compression for screenshots and mjpeg video recording with new JPG library
This commit is contained in:
1 parent
d3f8dffe39
commit
16b99e354b
4 files changed
+84
-161
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user