VIDEO: PreIMD: End frame when frameSize == 0

As happens for the last frame in the first video of the Fascination
intro.

svn-id: r54072
This commit is contained in:
Sven Hesse 2010-11-04 20:36:28 +00:00
parent 51f7c4c525
commit 016f24d16c

View File

@ -685,6 +685,10 @@ Surface *PreIMDDecoder::decodeNextFrame() {
void PreIMDDecoder::processFrame() {
uint16 frameSize = _stream->readUint16LE();
if (frameSize == 0) {
_curFrame++;
return;
}
uint32 nextFramePos = _stream->pos() + frameSize + 2;