From 6d879f15b7d30b623ebf66ff79e801f6ad5a017c Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Thu, 31 Dec 2009 18:25:35 +0000 Subject: Reading the whole buffer at once should be more efficient than reading it one byte at a time. svn-id: r46804 --- engines/mohawk/video/qdm2.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'engines/mohawk/video') diff --git a/engines/mohawk/video/qdm2.cpp b/engines/mohawk/video/qdm2.cpp index 23a09f05d1..f5d4af8aed 100644 --- a/engines/mohawk/video/qdm2.cpp +++ b/engines/mohawk/video/qdm2.cpp @@ -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 -- cgit v1.2.3