aboutsummaryrefslogtreecommitdiff
path: root/image/codecs/indeo5.cpp
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2017-07-24 22:16:53 +0200
committerWillem Jan Palenstijn2017-08-24 19:46:59 +0200
commitedfdbb9dd749cde96c1e155a1e5e5e00856adcc1 (patch)
tree92b768d2182e0055f0f11ccc322dc118d666f6e5 /image/codecs/indeo5.cpp
parent0c8f95603faca0f5a185bd421b34684645ed8b4d (diff)
downloadscummvm-rg350-edfdbb9dd749cde96c1e155a1e5e5e00856adcc1.tar.gz
scummvm-rg350-edfdbb9dd749cde96c1e155a1e5e5e00856adcc1.tar.bz2
scummvm-rg350-edfdbb9dd749cde96c1e155a1e5e5e00856adcc1.zip
IMAGE: Use new BitStreamMemory class for indeo
Diffstat (limited to 'image/codecs/indeo5.cpp')
-rw-r--r--image/codecs/indeo5.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/image/codecs/indeo5.cpp b/image/codecs/indeo5.cpp
index 858c634704..c4e98d4ac7 100644
--- a/image/codecs/indeo5.cpp
+++ b/image/codecs/indeo5.cpp
@@ -67,7 +67,7 @@ bool Indeo5Decoder::isIndeo5(Common::SeekableReadStream &stream) {
stream.seek(-16, SEEK_CUR);
// Validate the first 5-bit word has the correct identifier
- Indeo::GetBits gb(new Common::MemoryReadStream(buffer, 16 * 8));
+ Indeo::GetBits gb(buffer, 16 * 8);
bool isIndeo5 = gb.getBits(5) == 0x1F;
return isIndeo5;
@@ -85,7 +85,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));
+ _ctx._gb = new GetBits(_ctx._frameData, _ctx._frameSize);
// Decode the frame
int err = decodeIndeoFrame();