diff options
Diffstat (limited to 'graphics/video')
-rw-r--r-- | graphics/video/dxa_player.cpp | 2 | ||||
-rw-r--r-- | graphics/video/smk_player.cpp | 2 | ||||
-rw-r--r-- | graphics/video/video_player.h | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/graphics/video/dxa_player.cpp b/graphics/video/dxa_player.cpp index d297e58727..d7fd970e26 100644 --- a/graphics/video/dxa_player.cpp +++ b/graphics/video/dxa_player.cpp @@ -157,6 +157,8 @@ bool DXADecoder::loadFile(const char *fileName) { #endif _videoInfo.currentFrame = 0; + _videoInfo.frameOffs = _fileStream->pos(); + return true; } diff --git a/graphics/video/smk_player.cpp b/graphics/video/smk_player.cpp index 16d5c9f73d..4b5a502ec4 100644 --- a/graphics/video/smk_player.cpp +++ b/graphics/video/smk_player.cpp @@ -473,6 +473,8 @@ bool SmackerDecoder::loadFile(const char *fileName) { _palette = (byte *)malloc(3 * 256); memset(_palette, 0, 3 * 256); + _videoInfo.frameOffs = _fileStream->pos(); + return true; } diff --git a/graphics/video/video_player.h b/graphics/video/video_player.h index 2ffce6f9a9..6a49448c56 100644 --- a/graphics/video/video_player.h +++ b/graphics/video/video_player.h @@ -154,6 +154,7 @@ protected: uint32 frameCount; int32 frameRate; int32 frameDelay; + uint32 frameOffs; uint32 currentFrame; uint32 startTime; } _videoInfo; |