Make frame timing consistent between movie players

This commit is contained in:
Chris Robinson 2022-10-08 16:00:58 -07:00 committed by Christoph Oelckers
parent bf2e7c210d
commit d2f8c57136

View file

@ -642,7 +642,7 @@ public:
AudioTrack.SetClock(clock);
bool stop = false;
if (clock > nextframetime)
if (clock >= nextframetime)
{
nextframetime += nsecsperframe;
@ -927,7 +927,7 @@ public:
int frame = int(clock / nFrameNs);
twod->ClearScreen();
if (frame > nFrame)
if (frame >= nFrame)
{
nFrame++;
Smacker_GetNextFrame(hSMK);