mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +00:00
Fix Compact Pro extractor data corruption
This commit is contained in:
@@ -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
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user