[Scummvm-tracker] [ScummVM :: Bugs] #14803: SWORD2: Error during intro cutscene (Spanish Playstation version)

ScummVM :: Bugs trac at scummvm.org
Thu Dec 5 21:25:58 UTC 2024


#14803: SWORD2: Error during intro cutscene (Spanish Playstation version)
-------------------------------------------------+-------------------------
Reporter:  davidmorom                            |       Owner:  (none)
    Type:  defect                                |      Status:  new
Priority:  high                                  |   Component:  Engine:
                                                 |  Sword2
 Version:                                        |  Resolution:
Keywords:  broken sword spanish playstation ps1  |        Game:  Broken
  psx error crash                                |  Sword 2
-------------------------------------------------+-------------------------
Comment (by davidmorom):

 It's been a while since I opened this issue, so I decided to give it a try
 myself.

 There is, indeed, one corrupted frame in the spanish intro movie, that is
 ignored by the PS1 video decoder, but makes ScummVM crash. Two very simple
 changes can be made to the "psx_decoder.cpp" file to cleanly ignore the
 corrupted frame, so we get the same behavior as the PS1:

   - In function "PSXStreamDecoder::readNextPacket()", replace "error("Bad
 PSX stream track")" with "warning("Bad PSX stream track")" followed by a
 return to skip the whole corrupted packet.

   - In function "PSXStreamDecoder::PSXVideoTrack::decodeFrame()", replace
 "error("Unknown PSX stream frame version")" with "warning("Unknown PSX
 stream frame version")" followed by a return, so the whole corrupted frame
 is skipped, avoiding further Huffman decoding errors.

 If no developer wants to take a look on this, I can make a Pull Request
 myself.
-- 
Ticket URL: <https://bugs.scummvm.org/ticket/14803#comment:3>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list