summaryrefslogtreecommitdiffhomepage
path: root/Stars45/AviFile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Stars45/AviFile.cpp')
-rw-r--r--Stars45/AviFile.cpp12
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++;
}