aboutsummaryrefslogtreecommitdiff
path: root/video/avi_decoder.h
diff options
context:
space:
mode:
authorPaul Gilbert2017-06-25 20:48:12 -0400
committerPaul Gilbert2017-06-25 20:48:12 -0400
commit680b6686145e2fff9a15b37e22093f9965817ce2 (patch)
tree471b1dc5da6f1ebcfac028514090e651c082b521 /video/avi_decoder.h
parent6febe656f8c797ce00207c9812be8caf5edf782d (diff)
downloadscummvm-rg350-680b6686145e2fff9a15b37e22093f9965817ce2.tar.gz
scummvm-rg350-680b6686145e2fff9a15b37e22093f9965817ce2.tar.bz2
scummvm-rg350-680b6686145e2fff9a15b37e22093f9965817ce2.zip
VIDEO: Fix transparency track seeking in AVIDecoder
Diffstat (limited to 'video/avi_decoder.h')
-rw-r--r--video/avi_decoder.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/video/avi_decoder.h b/video/avi_decoder.h
index cc5c2c4d42..541c73e068 100644
--- a/video/avi_decoder.h
+++ b/video/avi_decoder.h
@@ -229,9 +229,19 @@ protected:
* Returns true if at the end of the video track
*/
virtual bool endOfTrack() const;
- protected:
+
+ /**
+ * Get track frame rate
+ */
Common::Rational getFrameRate() const { return Common::Rational(_vidsHeader.rate, _vidsHeader.scale); }
+ /**
+ * Force sets a new frame rate
+ */
+ void setFrameRate(const Common::Rational &r) {
+ _vidsHeader.rate = r.getNumerator();
+ _vidsHeader.scale = r.getDenominator();
+ }
private:
AVIStreamHeader _vidsHeader;
BitmapInfoHeader _bmInfo;