Fix Compact Pro extractor data corruption

This commit is contained in:
elasota
2020-05-09 23:11:39 -04:00
parent e9d65697f3
commit 9ddaec8add

View File

@@ -23,7 +23,7 @@ bool CompactProRLEDecompressor::Reset(CSInputBuffer *input, size_t compressedSiz
return true; return true;
} }
bool CompactProRLEDecompressor::ReadBytes(void *dest, size_t numBytes) bool CompactProRLEDecompressor::ReadBytes(void *dest, size_t numBytes)
{ {
uint8_t *destBytes = static_cast<uint8_t*>(dest); uint8_t *destBytes = static_cast<uint8_t*>(dest);
@@ -53,7 +53,7 @@ bool CompactProRLEDecompressor::EmitOneByte(uint8_t &b)
if (halfescaped) if (halfescaped)
{ {
byte = 0x81; byte = 0x81;
halfescaped = true; halfescaped = false;
} }
else else
{ {