mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 12:39:56 +00:00
IMAGE: Fix setting frame sizes in Indeo decoders
This commit is contained in:
parent
ac2bf1d79a
commit
ccbe07bd81
@ -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();
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user