From 51657e10769faa2617d546a06c42e4c62a19bb50 Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 30 Jan 2022 17:41:24 +0100 Subject: Removed trailing whitespace all over the place --- Stars45/AviFile.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Stars45/AviFile.cpp') diff --git a/Stars45/AviFile.cpp b/Stars45/AviFile.cpp index abc1c35..f2e069c 100644 --- a/Stars45/AviFile.cpp +++ b/Stars45/AviFile.cpp @@ -75,11 +75,11 @@ ps(0), ps_comp(0), nframe(0), nsamp(0), iserr(false) Print("AviFile - open successful\n"); - AVISTREAMINFO strhdr; + AVISTREAMINFO strhdr; ZeroMemory(&strhdr,sizeof(strhdr)); strhdr.fccType = streamtypeVIDEO; - strhdr.fccHandler = 0; + strhdr.fccHandler = 0; strhdr.dwScale = 1000 / fps; strhdr.dwRate = 1000; strhdr.dwSuggestedBufferSize = frame_size; @@ -96,7 +96,7 @@ ps(0), ps_comp(0), nframe(0), nsamp(0), iserr(false) Print("AviFile - create stream successful\n"); - AVICOMPRESSOPTIONS opts; + AVICOMPRESSOPTIONS opts; ZeroMemory(&opts,sizeof(opts)); opts.fccType = streamtypeVIDEO; //opts.fccHandler = mmioFOURCC('W','M','V','3'); @@ -106,7 +106,7 @@ ps(0), ps_comp(0), nframe(0), nsamp(0), iserr(false) hr = AVIMakeCompressedStream(&ps_comp, ps, &opts, 0); if (hr != AVIERR_OK) { Print("AviFile - compressed stream failed. %08x\n", hr); - iserr=true; + iserr=true; return; } @@ -127,7 +127,7 @@ ps(0), ps_comp(0), nframe(0), nsamp(0), iserr(false) if (hr != AVIERR_OK) { Print("AviFile - stream format failed. %08x\n", hr); - iserr=true; + iserr=true; return; } @@ -177,7 +177,7 @@ AviFile::AddFrame(const Bitmap& bmp) #pragma warning(suppress: 6001) hr = AVIStreamWrite(ps_comp, nframe, 1, buffer, frame_size, AVIIF_KEYFRAME, 0, 0); - + if (SUCCEEDED(hr)) { nframe++; } -- cgit v1.1