diff options
-rw-r--r-- | graphics/video/coktel_decoder.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/graphics/video/coktel_decoder.cpp b/graphics/video/coktel_decoder.cpp index 2fa0e3cd38..0709288091 100644 --- a/graphics/video/coktel_decoder.cpp +++ b/graphics/video/coktel_decoder.cpp @@ -581,7 +581,7 @@ uint32 CoktelDecoder::getTimeToNextFrame() const { // the middle of a long video. if (!hasSound()) - return (Common::Rational(1000) / _frameRate).toInt(); + return Common::Rational(1000, _frameRate).toInt(); // If there /is/ audio, we do need to keep video and audio // in sync, though. @@ -1039,7 +1039,7 @@ bool IMDDecoder::assessAudioProperties() { return false; } - _frameRate = Common::Rational(_soundFreq) / _soundSliceSize; + _frameRate = Common::Rational(_soundFreq, _soundSliceSize); _hasSound = true; _soundEnabled = true; @@ -1760,7 +1760,7 @@ bool VMDDecoder::assessAudioProperties() { return false; } - _frameRate = Common::Rational(_soundFreq) / _soundSliceSize; + _frameRate = Common::Rational(_soundFreq, _soundSliceSize); _hasSound = true; _soundEnabled = true; |