VIDEO: Allow zero data words count in decodeDeltaFLC

Excerpt from specification:
The first byte of each packet is the column skip count;
the second byte is the RLE count byte.
Zero or more data words follow the RLE count byte.
This commit is contained in:
Vladimir Menshakov 2021-04-25 13:18:31 +01:00
parent 4f10b64005
commit deb959a902

View file

@ -351,8 +351,6 @@ void FlicDecoder::FlicVideoTrack::decodeDeltaFLC(uint8 *data) {
WRITE_UINT16((byte *)_surface->getBasePtr(column + i * 2, currentLine), dataWord);
}
_dirtyRects.push_back(Common::Rect(column, currentLine, column + rleCount * 2, currentLine + 1));
} else { // End of cutscene ?
return;
}
column += rleCount * 2;
}