aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2016-09-10 10:03:15 -0400
committerPaul Gilbert2016-09-10 10:08:24 -0400
commita6ffef9e26a10ddd23965fe2f6b5a7e7965fb22e (patch)
treecf747e907172890b6b63793118a3bb33d4fd6268
parent4e9933d3c99d6367b04f07d2bd7499f1de999b57 (diff)
downloadscummvm-rg350-a6ffef9e26a10ddd23965fe2f6b5a7e7965fb22e.tar.gz
scummvm-rg350-a6ffef9e26a10ddd23965fe2f6b5a7e7965fb22e.tar.bz2
scummvm-rg350-a6ffef9e26a10ddd23965fe2f6b5a7e7965fb22e.zip
IMAGE: Remove green lines from Indeo4 decoder
-rw-r--r--image/codecs/indeo/indeo.cpp10
1 files 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;
}