From 062c4c527d343ec9bc84e40395eb592aa9c78663 Mon Sep 17 00:00:00 2001 From: mjbudd77 Date: Fri, 20 Aug 2021 21:06:16 -0400 Subject: [PATCH] Force VfW FOURCC characters to upper case. --- src/drivers/Qt/AviRecord.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/drivers/Qt/AviRecord.cpp b/src/drivers/Qt/AviRecord.cpp index 0d042f11..2a99f4db 100644 --- a/src/drivers/Qt/AviRecord.cpp +++ b/src/drivers/Qt/AviRecord.cpp @@ -543,7 +543,11 @@ int aviRecordOpenFile( const char *filepath ) else if ( videoFormat == AVI_VFW ) { 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