mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-12 20:17:49 +00:00
IMAGE: Remove green lines from Indeo4 decoder
This commit is contained in:
parent
4e9933d3c9
commit
a6ffef9e26
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user