Skip to content

Commit

Permalink
avi split fix
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Jun 19, 2011
1 parent 2bd2ebc commit 89289bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/wintaser/wintaser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3623,6 +3623,7 @@ bool OpenAVIFile(int width, int height, int bpp, int fps)
int oldAviMode = aviMode;
int oldAviSplitCount = aviSplitCount;
int oldAviSplitDiscardCount = aviSplitDiscardCount;
bool oldIsBasicallyEmpty = (aviFrameCount-aviEmptyFrameCount < 5 && aviSoundFrameCount < 15); // before CloseAVI zeroes these values out
CloseAVI();
aviMode = oldAviMode;
aviSplitCount = oldAviSplitCount;
Expand Down Expand Up @@ -3654,7 +3655,7 @@ bool OpenAVIFile(int width, int height, int bpp, int fps)
}
else
{
if(aviFrameCount-aviEmptyFrameCount < 2 && aviSoundFrameCount < 2)
if(oldIsBasicallyEmpty)
aviSplitDiscardCount++; // discard empty or almost-empty AVI segments

static char avifilename2 [MAX_PATH+1];
Expand Down

0 comments on commit 89289bf

Please sign in to comment.