[Scummvm-git-logs] scummvm master -> b2a9df06e2e0e03b1dc2bd9a81fa0612e4021be3
bluegr
noreply at scummvm.org
Thu Sep 22 00:11:45 UTC 2022
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
b2a9df06e2 VIDEO: Set decoder frame rate when loading Theora video.
Commit: b2a9df06e2e0e03b1dc2bd9a81fa0612e4021be3
https://github.com/scummvm/scummvm/commit/b2a9df06e2e0e03b1dc2bd9a81fa0612e4021be3
Author: Matthew Duggan (mgithub at guarana.org)
Date: 2022-09-22T03:11:40+03:00
Commit Message:
VIDEO: Set decoder frame rate when loading Theora video.
Changed paths:
video/theora_decoder.cpp
video/theora_decoder.h
diff --git a/video/theora_decoder.cpp b/video/theora_decoder.cpp
index c833fce80fe..b9b57912d30 100644
--- a/video/theora_decoder.cpp
+++ b/video/theora_decoder.cpp
@@ -169,6 +169,7 @@ bool TheoraDecoder::loadStream(Common::SeekableReadStream *stream) {
if (_hasVideo) {
_videoTrack = new TheoraVideoTrack(getDefaultHighColorFormat(), theoraInfo, theoraSetup);
addTrack(_videoTrack);
+ setRate(_videoTrack->getFrameRate());
}
th_info_clear(&theoraInfo);
diff --git a/video/theora_decoder.h b/video/theora_decoder.h
index 893d000ecf3..99b141c3fbd 100644
--- a/video/theora_decoder.h
+++ b/video/theora_decoder.h
@@ -84,6 +84,7 @@ private:
uint16 getHeight() const { return _displaySurface.h; }
Graphics::PixelFormat getPixelFormat() const { return _displaySurface.format; }
int getCurFrame() const { return _curFrame; }
+ const Common::Rational &getFrameRate() const { return _frameRate; }
uint32 getNextFrameStartTime() const { return (uint32)(_nextFrameStartTime * 1000); }
const Graphics::Surface *decodeNextFrame() { return &_displaySurface; }
More information about the Scummvm-git-logs
mailing list