Reading the whole buffer at once should be more efficient than reading it one

byte at a time.

svn-id: r46804
This commit is contained in:
Torbjörn Andersson 2009-12-31 18:25:35 +00:00
parent e56dedec3f
commit 6d879f15b7

View File

@ -2961,8 +2961,7 @@ int QDM2Stream::qdm2_decodeFrame(Common::SeekableReadStream *in) {
return 0;
}
for(i = 0; i < _packetSize; i++)
_compressedData[i] = in->readByte();
in->read(_compressedData, _packetSize);
debug(1, "QDM2Stream::qdm2_decodeFrame constructed input data");
// copy old block, clear new block of output samples