diff options
author | Paul Gilbert | 2014-02-04 00:05:56 -0500 |
---|---|---|
committer | Paul Gilbert | 2014-02-04 00:05:56 -0500 |
commit | 77d8810b1930368ae3d8fe297d496347d49eca59 (patch) | |
tree | aef10de701f28481a3cf366df6e274952c5f19ee /engines/voyeur/voyeur.cpp | |
parent | d5231aa862538bba94e456fd70fbdeb6a4b0f9ca (diff) | |
download | scummvm-rg350-77d8810b1930368ae3d8fe297d496347d49eca59.tar.gz scummvm-rg350-77d8810b1930368ae3d8fe297d496347d49eca59.tar.bz2 scummvm-rg350-77d8810b1930368ae3d8fe297d496347d49eca59.zip |
VOYEUR: Converted RL2 header getFrameRate to use Common::Rational
Diffstat (limited to 'engines/voyeur/voyeur.cpp')
-rw-r--r-- | engines/voyeur/voyeur.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/voyeur/voyeur.cpp b/engines/voyeur/voyeur.cpp index 177ee552f0..37dd527b39 100644 --- a/engines/voyeur/voyeur.cpp +++ b/engines/voyeur/voyeur.cpp @@ -565,8 +565,9 @@ void VoyeurEngine::playAVideoDuration(int videoId, int duration) { RL2Decoder decoder; decoder.loadVideo(videoId); + decoder.seek(Audio::Timestamp(_voy._vocSecondsOffset * 1000, + decoder.getHeader().getFrameRate().toInt())); decoder.start(); - decoder.seek(Audio::Timestamp(_voy._vocSecondsOffset * 1000, decoder.getHeader().getFrameRate())); int endFrame = decoder.getCurFrame() + totalFrames; _eventsManager.getMouseInfo(); |