aboutsummaryrefslogtreecommitdiff
path: root/video/avi_decoder.h
diff options
context:
space:
mode:
authorMatthew Hoops2012-11-29 15:50:43 -0500
committerMatthew Hoops2013-06-20 00:04:37 -0400
commitaa2d41701d14a651c23c4e2a4c5098a300f2235f (patch)
tree93f486746d0e1063c81108cf4360466a2adc5ff5 /video/avi_decoder.h
parentf39c9d58bddc558a3322137684190983ea403d52 (diff)
downloadscummvm-rg350-aa2d41701d14a651c23c4e2a4c5098a300f2235f.tar.gz
scummvm-rg350-aa2d41701d14a651c23c4e2a4c5098a300f2235f.tar.bz2
scummvm-rg350-aa2d41701d14a651c23c4e2a4c5098a300f2235f.zip
VIDEO: Allow AVI frame rate to be overriden with a constant
Required for sword1/sword2 MPEG videos
Diffstat (limited to 'video/avi_decoder.h')
-rw-r--r--video/avi_decoder.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/video/avi_decoder.h b/video/avi_decoder.h
index bc870eac33..1652614bd8 100644
--- a/video/avi_decoder.h
+++ b/video/avi_decoder.h
@@ -56,6 +56,7 @@ class Codec;
class AVIDecoder : public VideoDecoder {
public:
AVIDecoder(Audio::Mixer::SoundType soundType = Audio::Mixer::kPlainSoundType);
+ AVIDecoder(const Common::Rational &frameRateOverride, Audio::Mixer::SoundType soundType = Audio::Mixer::kPlainSoundType);
virtual ~AVIDecoder();
bool loadStream(Common::SeekableReadStream *stream);
@@ -222,6 +223,8 @@ private:
bool _decodedHeader, _foundMovieList;
Audio::Mixer::SoundType _soundType;
+ Common::Rational _frameRateOverride;
+ void initCommon();
void runHandle(uint32 tag);
void handleList();