[Scummvm-tracker] [ScummVM :: Bugs] #13412: AGS: Zniw Adventure issues and crash (segmentation fault)

ScummVM :: Bugs trac at scummvm.org
Wed Feb 22 16:29:24 UTC 2023


#13412: AGS: Zniw Adventure issues and crash (segmentation fault)
-----------------------------------------+--------------------------
Reporter:  antoniou79                    |       Owner:  (none)
    Type:  defect                        |      Status:  new
Priority:  normal                        |   Component:  Engine: AGS
 Version:                                |  Resolution:
Keywords:  Zniw Adventure, fonts, crash  |        Game:
-----------------------------------------+--------------------------
Comment (by antoniou79):

 Possible fix for fast intro video to forest demo:
 {{{
 diff --git a/video/theora_decoder.cpp b/video/theora_decoder.cpp
 index b9b57912d30..3edb5800165 100644
 --- a/video/theora_decoder.cpp
 +++ b/video/theora_decoder.cpp
 @@ -169,7 +169,11 @@ bool
 TheoraDecoder::loadStream(Common::SeekableReadStream *stream) {
         if (_hasVideo) {
                 _videoTrack = new
 TheoraVideoTrack(getDefaultHighColorFormat(), theoraInfo, theoraSetup);
                 addTrack(_videoTrack);
 -               setRate(_videoTrack->getFrameRate());
 +               // Set video speed to 1x
 +               // Note: video_decoder's setRate() method does not set
 frames-per-second rate
 +               //       but rather the speed of the playback (eg. 1x, 2x
 etc, with 1x being normal speed).
 +               //       Hence, we do not pass _videoTrack->getFrameRate()
 as argument to setRate().
 +               setRate(1);
         }

         th_info_clear(&theoraInfo);

 }}}

 Attached as a diff file too.
-- 
Ticket URL: <https://bugs.scummvm.org/ticket/13412#comment:12>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list