IMAGE: Fix decoding Starship Titanic video file z404.avi

This commit is contained in:
Paul Gilbert 2016-09-01 22:33:12 -04:00
parent 636f033175
commit 23718d14ab

View file

@ -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;
}