aboutsummaryrefslogtreecommitdiff
path: root/image/codecs
diff options
context:
space:
mode:
authorPaul Gilbert2016-11-14 20:42:21 -0500
committerPaul Gilbert2016-11-14 20:42:21 -0500
commitccbe07bd815472f7d1ff76400d83206bb6c31261 (patch)
tree0d3e91ec37ee6d126b91f6485821ccc55931ddd8 /image/codecs
parentac2bf1d79a7c1eca989ef8e0754cc7fa566970ac (diff)
downloadscummvm-rg350-ccbe07bd815472f7d1ff76400d83206bb6c31261.tar.gz
scummvm-rg350-ccbe07bd815472f7d1ff76400d83206bb6c31261.tar.bz2
scummvm-rg350-ccbe07bd815472f7d1ff76400d83206bb6c31261.zip
IMAGE: Fix setting frame sizes in Indeo decoders
Diffstat (limited to 'image/codecs')
-rw-r--r--image/codecs/indeo4.cpp2
-rw-r--r--image/codecs/indeo5.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/image/codecs/indeo4.cpp b/image/codecs/indeo4.cpp
index 6ceb3b2aa5..ebe2f6f7b4 100644
--- a/image/codecs/indeo4.cpp
+++ b/image/codecs/indeo4.cpp
@@ -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();
diff --git a/image/codecs/indeo5.cpp b/image/codecs/indeo5.cpp
index e3f424957e..7c16a3a6de 100644
--- a/image/codecs/indeo5.cpp
+++ b/image/codecs/indeo5.cpp
@@ -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();