[Scummvm-git-logs] scummvm master -> ccbe07bd815472f7d1ff76400d83206bb6c31261
dreammaster
dreammaster at scummvm.org
Tue Nov 15 02:42:30 CET 2016
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
ccbe07bd81 IMAGE: Fix setting frame sizes in Indeo decoders
Commit: ccbe07bd815472f7d1ff76400d83206bb6c31261
https://github.com/scummvm/scummvm/commit/ccbe07bd815472f7d1ff76400d83206bb6c31261
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2016-11-14T20:42:21-05:00
Commit Message:
IMAGE: Fix setting frame sizes in Indeo decoders
Changed paths:
image/codecs/indeo4.cpp
image/codecs/indeo5.cpp
diff --git a/image/codecs/indeo4.cpp b/image/codecs/indeo4.cpp
index 6ceb3b2..ebe2f6f 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 e3f4249..7c16a3a 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();
More information about the Scummvm-git-logs
mailing list