diff options
author | Aki <please@ignore.pl> | 2022-01-30 17:41:24 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-01-30 17:41:24 +0100 |
commit | 51657e10769faa2617d546a06c42e4c62a19bb50 (patch) | |
tree | 688ad8b61ac02e50974684b9b7d3f886fb469e5f /Stars45/AviFile.cpp | |
parent | db987e23d5dd33a5db8764743facbb906ac22b0f (diff) | |
download | starshatter-51657e10769faa2617d546a06c42e4c62a19bb50.zip starshatter-51657e10769faa2617d546a06c42e4c62a19bb50.tar.gz starshatter-51657e10769faa2617d546a06c42e4c62a19bb50.tar.bz2 |
Removed trailing whitespace all over the place
Diffstat (limited to 'Stars45/AviFile.cpp')
-rw-r--r-- | Stars45/AviFile.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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++; } |