mirror of
https://github.com/libretro/scummvm.git
synced 2024-11-27 19:30:41 +00:00
VIDEO: Fix infinite loop when loading greyscale QT videos
This commit is contained in:
parent
0dce88baf3
commit
94e482145b
@ -161,7 +161,7 @@ Common::QuickTimeParser::SampleDesc *QuickTimeDecoder::readSampleDesc(Common::Qu
|
||||
uint16 colorCount = 1 << colorDepth;
|
||||
int16 colorIndex = 255;
|
||||
byte colorDec = 256 / (colorCount - 1);
|
||||
for (byte j = 0; j < colorCount; j++) {
|
||||
for (uint16 j = 0; j < colorCount; j++) {
|
||||
entry->_palette[j * 3] = entry->_palette[j * 3 + 1] = entry->_palette[j * 3 + 2] = colorIndex;
|
||||
colorIndex -= colorDec;
|
||||
if (colorIndex < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user