Force VfW FOURCC characters to upper case.

This commit is contained in:
mjbudd77 2021-08-20 21:06:16 -04:00
parent ba5be09a28
commit 062c4c527d
1 changed files with 5 additions and 1 deletions

View File

@ -543,7 +543,11 @@ int aviRecordOpenFile( const char *filepath )
else if ( videoFormat == AVI_VFW ) else if ( videoFormat == AVI_VFW )
{ {
memcpy( fourcc, &VFW::cmpvars.fccHandler, 4); memcpy( fourcc, &VFW::cmpvars.fccHandler, 4);
printf("Set VFW FourCC: %s", fourcc); for (int i=0; i<4; i++)
{
fourcc[i] = toupper(fourcc[i]);
}
printf("Set VFW FourCC: %s\n", fourcc);
} }
#endif #endif