Another patch to make uncompressed AVI write in RGB24 format by anonymous virtualdub sympathiser.

This commit is contained in:
Thilo Schulz 2006-07-31 15:32:59 +00:00
parent 3a1c4aa457
commit 5efd7c8c36
2 changed files with 9 additions and 10 deletions

View file

@ -248,7 +248,7 @@ void CL_WriteAVIHeader( void )
WRITE_4BYTES( afd.width ); //biWidth
WRITE_4BYTES( afd.height ); //biHeight
WRITE_2BYTES( 1 ); //biPlanes
WRITE_2BYTES( 32 ); //biBitCount
WRITE_2BYTES( 24 ); //biBitCount
if( afd.motionJpeg ) { //biCompression
WRITE_STRING( "MJPG" );
@ -257,7 +257,7 @@ void CL_WriteAVIHeader( void )
} else {
WRITE_4BYTES( 0 ); // BI_RGB
WRITE_4BYTES( afd.width *
afd.height*4 ); //biSizeImage
afd.height*3 ); //biSizeImage
}
WRITE_4BYTES( 0 ); //biXPelsPetMeter