Opened 6 years ago
Closed 6 years ago
#9881 closed defect (fixed)
TITANIC: Brief freeze during intro credits cutscene
|Reported by:||dreammaster||Owned by:||dreammaster|
When playing the credits video, upon flying back into the embarkation lobby and turning round, the video freezes for 3-4 seconds whilst the music continues playing. The video then finishes playing to silence.
Change History (2)
comment:1 by , 6 years ago
comment:2 by , 6 years ago
|Status:||new → closed|
Note: See TracTickets for help on using tickets.
Okay, it seems like the original playCutscene method supported picking up from within a video from where a prior playCutscene finished (ie. it's ending frame is the new starting frame - 1). Whereas the ScummVM version always does an explicit seek to the starting frame for the cutscene. The problem with that, in this case, is that the video doesn't have a frame index in the AVI file. So when it tries to seek to the starting frame, it can't find the file offset for it, so it has to iterate through decoding each and every video frame from the start of the AVI file up to correct starting frame. Hence the sudden pause.
I'll look into ignoring the frame seek if the video is already at the correct frame.