diff options
author | Sven Hesse | 2007-08-13 14:04:50 +0000 |
---|---|---|
committer | Sven Hesse | 2007-08-13 14:04:50 +0000 |
commit | 5bacb6edeef0dac09b5e5b2ac41a6a332f78cee7 (patch) | |
tree | c0c0bf36cd4175da5ce3bc3058ce0e21a97491f5 /engines/gob/coktelvideo.cpp | |
parent | 32164654a6a4c9ddbb70c65371c1e762056511e6 (diff) | |
download | scummvm-rg350-5bacb6edeef0dac09b5e5b2ac41a6a332f78cee7.tar.gz scummvm-rg350-5bacb6edeef0dac09b5e5b2ac41a6a332f78cee7.tar.bz2 scummvm-rg350-5bacb6edeef0dac09b5e5b2ac41a6a332f78cee7.zip |
Woodruff is now controllable
svn-id: r28591
Diffstat (limited to 'engines/gob/coktelvideo.cpp')
-rw-r--r-- | engines/gob/coktelvideo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/gob/coktelvideo.cpp b/engines/gob/coktelvideo.cpp index 16df54d85f..882422dd84 100644 --- a/engines/gob/coktelvideo.cpp +++ b/engines/gob/coktelvideo.cpp @@ -885,9 +885,9 @@ bool Vmd::load(Common::SeekableReadStream &stream) { _vidBufferSize = _stream->readUint32LE(); if (_hasVideo) { - if (_frameDataSize == 0) + if ((_frameDataSize == 0) || (_frameDataSize > 1048576)) _frameDataSize = _width * _height + 500; - if (_vidBufferSize == 0) + if ((_vidBufferSize == 0) || (_vidBufferSize > 1048576)) _vidBufferSize = _frameDataSize; _frameData = new byte[_frameDataSize]; |