From 7dd2c0342d9a650d6bdc4864c702921d3b3fb070 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Wed, 23 Aug 2017 19:59:17 -0500 Subject: IMAGE: Remove unnecessary temporary surface in Indeo4/5 --- image/codecs/indeo/indeo.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'image') diff --git a/image/codecs/indeo/indeo.cpp b/image/codecs/indeo/indeo.cpp index 6b6e3557fe..f8cd8a1c64 100644 --- a/image/codecs/indeo/indeo.cpp +++ b/image/codecs/indeo/indeo.cpp @@ -578,8 +578,7 @@ int IndeoDecoderBase::decodeIndeoFrame() { outputPlane(&_ctx._planes[1], frame->_data[2], frame->_linesize[2]); // Merge the planes into the final surface - Graphics::Surface s = _surface->getSubArea(Common::Rect(0, 0, _surface->w, _surface->h)); - YUVToRGBMan.convert410(&s, Graphics::YUVToRGBManager::kScaleITU, + YUVToRGBMan.convert410(_surface, Graphics::YUVToRGBManager::kScaleITU, frame->_data[0], frame->_data[1], frame->_data[2], frame->_width, frame->_height, frame->_width, frame->_width); -- cgit v1.2.3