IMAGE: Fix decoding Starship Titanic video file z404.avi
This commit is contained in:
parent
636f033175
commit
23718d14ab
1 changed files with 4 additions and 1 deletions
|
@ -101,7 +101,10 @@ void MSRLEDecoder::decode8(Common::SeekableReadStream &stream) {
|
|||
// Copy data
|
||||
|
||||
if (output + value > output_end) {
|
||||
stream.skip(value);
|
||||
if (stream.pos() + value >= stream.size())
|
||||
break;
|
||||
else
|
||||
stream.skip(value);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue