diff options
author | Paul Gilbert | 2016-09-10 11:16:07 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-09-10 11:16:07 -0400 |
commit | bd010bc79f6a56b51c1414a8cafc64bc248496fe (patch) | |
tree | a1b2d0642709e4d79dce8774ba218d107c13e0c9 /video/bink_decoder.cpp | |
parent | 9c7b9e166746a903dc0b7e87967ec257967e1359 (diff) | |
download | scummvm-rg350-bd010bc79f6a56b51c1414a8cafc64bc248496fe.tar.gz scummvm-rg350-bd010bc79f6a56b51c1414a8cafc64bc248496fe.tar.bz2 scummvm-rg350-bd010bc79f6a56b51c1414a8cafc64bc248496fe.zip |
COMMON: Converted Common::BitStream to use DisposeAfterUse
Diffstat (limited to 'video/bink_decoder.cpp')
-rw-r--r-- | video/bink_decoder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/bink_decoder.cpp b/video/bink_decoder.cpp index a228377a27..cf37e0f06b 100644 --- a/video/bink_decoder.cpp +++ b/video/bink_decoder.cpp @@ -187,7 +187,7 @@ void BinkDecoder::readNextPacket() { audio.sampleCount = _bink->readUint32LE() / (2 * audio.channels); audio.bits = new Common::BitStream32LELSB(new Common::SeekableSubReadStream(_bink, - audioPacketStart + 4, audioPacketEnd), true); + audioPacketStart + 4, audioPacketEnd), DisposeAfterUse::YES); audioTrack->decodePacket(); @@ -204,7 +204,7 @@ void BinkDecoder::readNextPacket() { uint32 videoPacketEnd = _bink->pos() + frameSize; frame.bits = new Common::BitStream32LELSB(new Common::SeekableSubReadStream(_bink, - videoPacketStart, videoPacketEnd), true); + videoPacketStart, videoPacketEnd), DisposeAfterUse::YES); videoTrack->decodePacket(frame); |