From a6ffef9e26a10ddd23965fe2f6b5a7e7965fb22e Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 10 Sep 2016 10:03:15 -0400 Subject: IMAGE: Remove green lines from Indeo4 decoder --- image/codecs/indeo/indeo.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/image/codecs/indeo/indeo.cpp b/image/codecs/indeo/indeo.cpp index d6fdfd189d..69b9f4289b 100644 --- a/image/codecs/indeo/indeo.cpp +++ b/image/codecs/indeo/indeo.cpp @@ -425,9 +425,15 @@ int AVFrame::ff_set_dimensions(uint16 width, uint16 height) { int AVFrame::ff_get_buffer(int flags) { av_frame_free(); + + // Luminance channel _data[0] = (uint8 *)av_mallocz(_width * _height); - _data[1] = (uint8 *)av_mallocz(_width * _height); - _data[2] = (uint8 *)av_mallocz(_width * _height); + + // UV Chroma Channels + _data[1] = (uint8 *)av_malloc(_width * _height); + _data[2] = (uint8 *)av_malloc(_width * _height); + Common::fill(_data[1], _data[1] + _width * _height, 0x80); + Common::fill(_data[2], _data[2] + _width * _height, 0x80); return 0; } -- cgit v1.2.3