IMAGE: Fix setting frame sizes in Indeo decoders

This commit is contained in:
Paul Gilbert 2016-11-14 20:42:21 -05:00
parent ac2bf1d79a
commit ccbe07bd81
2 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ const Graphics::Surface *Indeo4Decoder::decodeFrame(Common::SeekableReadStream &
_ctx._frameSize = stream.size();
// Set up the GetBits instance for reading the data
_ctx._gb = new GetBits(new Common::MemoryReadStream(_ctx._frameData, _ctx._frameSize * 8));
_ctx._gb = new GetBits(new Common::MemoryReadStream(_ctx._frameData, _ctx._frameSize));
// Decode the frame
int err = decodeIndeoFrame();

View File

@ -84,7 +84,7 @@ const Graphics::Surface *Indeo5Decoder::decodeFrame(Common::SeekableReadStream &
_ctx._frameSize = stream.size();
// Set up the GetBits instance for reading the data
_ctx._gb = new GetBits(new Common::MemoryReadStream(_ctx._frameData, _ctx._frameSize * 8));
_ctx._gb = new GetBits(new Common::MemoryReadStream(_ctx._frameData, _ctx._frameSize));
// Decode the frame
int err = decodeIndeoFrame();