aboutsummaryrefslogtreecommitdiff
path: root/graphics/video/coktel_decoder.cpp
diff options
context:
space:
mode:
authorSven Hesse2011-01-20 03:22:43 +0000
committerSven Hesse2011-01-20 03:22:43 +0000
commitd77899e158e2ae2076d7d8185a92c544b4a06351 (patch)
treecf39a6aab4bbccce79d0f4952f33ea1122468fe9 /graphics/video/coktel_decoder.cpp
parent024b7758c5122bae99f1a92fc38fce3ad231d1f6 (diff)
downloadscummvm-rg350-d77899e158e2ae2076d7d8185a92c544b4a06351.tar.gz
scummvm-rg350-d77899e158e2ae2076d7d8185a92c544b4a06351.tar.bz2
scummvm-rg350-d77899e158e2ae2076d7d8185a92c544b4a06351.zip
GOB: Make Urban Runner's "3D view" work again
svn-id: r55340
Diffstat (limited to 'graphics/video/coktel_decoder.cpp')
-rw-r--r--graphics/video/coktel_decoder.cpp16
1 files changed, 4 insertions, 12 deletions
diff --git a/graphics/video/coktel_decoder.cpp b/graphics/video/coktel_decoder.cpp
index 6ec0929d82..c133ebc1ee 100644
--- a/graphics/video/coktel_decoder.cpp
+++ b/graphics/video/coktel_decoder.cpp
@@ -606,21 +606,13 @@ Common::Rational CoktelDecoder::getFrameRate() const {
}
uint32 CoktelDecoder::getTimeToNextFrame() const {
- // If there is no audio, just return the static time between
- // frames without any elaborate sync calculation. This is
- // needed for the gob engine, since it has a lot of control
- // between the videos and often plays just few frames out of
- // the middle of a long video.
-
- if (!hasSound())
- return (1000 / _frameRate).toInt();
-
- // If there /is/ audio, we do need to keep video and audio
- // in sync, though.
-
return FixedRateVideoDecoder::getTimeToNextFrame();
}
+uint32 CoktelDecoder::getStaticTimeToNextFrame() const {
+ return (1000 / _frameRate).toInt();
+}
+
inline void CoktelDecoder::unsignedToSigned(byte *buffer, int length) {
while (length-- > 0) *buffer++ ^= 0x80;
}