From edfdbb9dd749cde96c1e155a1e5e5e00856adcc1 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Mon, 24 Jul 2017 22:16:53 +0200 Subject: IMAGE: Use new BitStreamMemory class for indeo --- image/codecs/indeo/get_bits.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'image/codecs/indeo') diff --git a/image/codecs/indeo/get_bits.h b/image/codecs/indeo/get_bits.h index c2d593bfb5..f972e68ae0 100644 --- a/image/codecs/indeo/get_bits.h +++ b/image/codecs/indeo/get_bits.h @@ -31,15 +31,14 @@ namespace Indeo { /** * Intel Indeo Bitstream reader */ -class GetBits : public Common::BitStream8LSB { +class GetBits : public Common::BitStreamMemory8LSB { public: /** * Constructor * @param stream Source stream to reader from * @param disposeAfterUse Whether to destroy stream in destructor */ - GetBits(Common::SeekableReadStream *stream, DisposeAfterUse::Flag disposeAfterUse - = DisposeAfterUse::YES) : Common::BitStream8LSB(stream, disposeAfterUse) {} + GetBits(const uint8 *ptr, uint32 size) : Common::BitStreamMemory8LSB(new Common::BitStreamMemoryStream(ptr, size), DisposeAfterUse::YES) {} /** * The number of bits left -- cgit v1.2.3