mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-30 23:43:10 +00:00
VIDEO: Workaround for out of buffer accesses in SVQ1 codec.
This is a temporary workaround during development. Keyframe (I) decoding is now working correctly, but Deltaframe (P) is still giving corrupted output...
This commit is contained in:
parent
d15ff5a03e
commit
7109e26d04
@ -283,9 +283,11 @@ const Graphics::Surface *SVQ1Decoder::decodeImage(Common::SeekableReadStream *st
|
||||
}
|
||||
|
||||
byte *current[3];
|
||||
current[0] = new byte[_width*_height];
|
||||
current[1] = new byte[(_width/4)*(_height/4)];
|
||||
current[2] = new byte[(_width/4)*(_height/4)];
|
||||
// FIXME - Added extra _width of 16px blocks to stop out of
|
||||
// range access causing crashes. Need to correct code...
|
||||
current[0] = new byte[_width*_height +(_width*16)];
|
||||
current[1] = new byte[(_width/4)*(_height/4) +(_width/4*16)];
|
||||
current[2] = new byte[(_width/4)*(_height/4) +(_width/4*16)];
|
||||
|
||||
// Decode Y, U and V component planes
|
||||
for (int i = 0; i < 3; i++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user