aboutsummaryrefslogtreecommitdiff
path: root/graphics/video/dxa_player.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/video/dxa_player.cpp')
-rw-r--r--graphics/video/dxa_player.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/graphics/video/dxa_player.cpp b/graphics/video/dxa_player.cpp
index 55fe869fc4..d0d4d1c67b 100644
--- a/graphics/video/dxa_player.cpp
+++ b/graphics/video/dxa_player.cpp
@@ -86,13 +86,13 @@ bool DXADecoder::loadFile(const char *fileName) {
if (frameRate > 0) {
_videoInfo.frameRate = 1000 / frameRate;
- _videoInfo.frameDelay = frameRate;
+ _videoInfo.frameDelay = frameRate * 100;
} else if (frameRate < 0) {
_videoInfo.frameRate = 100000 / (-frameRate);
- _videoInfo.frameDelay = -frameRate / 100;
+ _videoInfo.frameDelay = -frameRate;
} else {
_videoInfo.frameRate = 10;
- _videoInfo.frameDelay = 100;
+ _videoInfo.frameDelay = 10000;
}
_videoInfo.width = _fileStream->readUint16BE();
@@ -155,9 +155,13 @@ bool DXADecoder::loadFile(const char *fileName) {
} while (tag != 0);
}
#endif
+
+ // Read the sound header
+ _soundTag = _fileStream->readUint32BE();
+
_videoInfo.currentFrame = 0;
- _videoInfo.frameOffs = _fileStream->pos();
+ _videoInfo.firstframeOffset = _fileStream->pos();
return true;
}