Set default value for AVI video driver to be a safe choice that is supported by all platforms.

This commit is contained in:
mjbudd77 2021-05-01 01:32:17 -04:00
parent e57e8f7e4c
commit da4997ea9c
1 changed files with 7 additions and 1 deletions

View File

@ -32,7 +32,7 @@ static int abufTail = 0;
static int abufSize = 0; static int abufSize = 0;
static uint32_t *rawVideoBuf = NULL; static uint32_t *rawVideoBuf = NULL;
static int16_t *rawAudioBuf = NULL; static int16_t *rawAudioBuf = NULL;
static int videoFormat = AVI_VFW; static int videoFormat = AVI_RGB24;
static int audioSampleRate = 48000; static int audioSampleRate = 48000;
//************************************************************************************** //**************************************************************************************
@ -369,6 +369,12 @@ static int close(void)
GlobalFree(bmapOut); GlobalFree(bmapOut);
GlobalFree(outBuf); GlobalFree(outBuf);
if ( cmpSet )
{
ICCompressorFree( &cmpvars );
cmpSet = false;
}
return 0; return 0;
} }