Ticket #13412: fixTheoraDecoderRate.txt

File fixTheoraDecoderRate.txt, 777 bytes (added by antoniou79, 14 months ago)
Line 
1diff --git a/video/theora_decoder.cpp b/video/theora_decoder.cpp
2index b9b57912d30..3edb5800165 100644
3--- a/video/theora_decoder.cpp
4+++ b/video/theora_decoder.cpp
5@@ -169,7 +169,11 @@ bool TheoraDecoder::loadStream(Common::SeekableReadStream *stream) {
6 if (_hasVideo) {
7 _videoTrack = new TheoraVideoTrack(getDefaultHighColorFormat(), theoraInfo, theoraSetup);
8 addTrack(_videoTrack);
9- setRate(_videoTrack->getFrameRate());
10+ // Set video speed to 1x
11+ // Note: video_decoder's setRate() method does not set frames-per-second rate
12+ // but rather the speed of the playback (eg. 1x, 2x etc, with 1x being normal speed).
13+ // Hence, we do not pass _videoTrack->getFrameRate() as argument to setRate().
14+ setRate(1);
15 }
16
17 th_info_clear(&theoraInfo);