aboutsummaryrefslogtreecommitdiff
path: root/graphics/video/smk_player.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/video/smk_player.cpp')
-rw-r--r--graphics/video/smk_player.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/graphics/video/smk_player.cpp b/graphics/video/smk_player.cpp
index 4b5a502ec4..9ed8e9902f 100644
--- a/graphics/video/smk_player.cpp
+++ b/graphics/video/smk_player.cpp
@@ -344,9 +344,9 @@ int32 SmackerDecoder::getAudioLag() {
and how much time *should* have passed.
*/
- audioTime = (g_system->getMillis() - _videoInfo.startTime) * 100;
+ audioTime = g_system->getMillis() - _videoInfo.startTime;
} else
- audioTime = (((int32) _mixer->getSoundElapsedTime(_audioHandle)) * 100);
+ audioTime = (int32) _mixer->getSoundElapsedTime(_audioHandle);
return videoTime - audioTime;
}
@@ -380,13 +380,13 @@ bool SmackerDecoder::loadFile(const char *fileName) {
if (frameRate > 0) {
_videoInfo.frameRate = 1000 / frameRate;
- _videoInfo.frameDelay = frameRate * 100;
+ _videoInfo.frameDelay = frameRate;
} else if (frameRate < 0) {
_videoInfo.frameRate = 100000 / (-frameRate);
- _videoInfo.frameDelay = -frameRate;
+ _videoInfo.frameDelay = -frameRate / 100;
} else {
_videoInfo.frameRate = 10;
- _videoInfo.frameDelay = 10000;
+ _videoInfo.frameDelay = 100;
}
// Flags are determined by which bit is set, which can be one of the following: