IMAGE: Remove unnecessary temporary surface in Indeo4/5

This commit is contained in:
Colin Snover 2017-08-23 19:59:17 -05:00
parent 085ec30b49
commit 7dd2c0342d

View file

@ -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);