Fix video dumping incorrect lengths for some games

This commit is contained in:
Fog 2015-05-07 22:29:43 -04:00
parent 9b1c2d3108
commit 16081a23f1
1 changed files with 2 additions and 2 deletions

View File

@ -242,13 +242,13 @@ void AVIDump::AddFrame(const u8* data, int w, int h)
} }
bool b_frame_dumped = false; bool b_frame_dumped = false;
// try really hard to place one copy of frame in stream (otherwise it's dropped) // try really hard to place one copy of frame in stream (otherwise it's dropped)
if (delta > (s64)one_cfr * 3 / 10) // place if 3/10th of a frame space if (delta > (s64)one_cfr * 1 / 10) // place if 1/10th of a frame space
{ {
delta -= one_cfr; delta -= one_cfr;
nplay++; nplay++;
} }
// try not nearly so hard to place additional copies of the frame // try not nearly so hard to place additional copies of the frame
while (delta > (s64)one_cfr * 8 / 10) // place if 8/10th of a frame space while (delta > (s64)one_cfr * 9 / 10) // place if 9/10th of a frame space
{ {
delta -= one_cfr; delta -= one_cfr;
nplay++; nplay++;