mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-27 07:34:00 +08:00
Update HuffmanDecoder.cs
This commit is contained in:
parent
2ad5095cec
commit
4773ff148f
@ -343,9 +343,10 @@ namespace GameRes.Formats.DxLib
|
|||||||
if (0 == m_bit_count)
|
if (0 == m_bit_count)
|
||||||
{
|
{
|
||||||
m_bits = m_input[m_src];
|
m_bits = m_input[m_src];
|
||||||
m_src += 1;
|
m_src++;
|
||||||
m_bit_count = 8;
|
m_bit_count = 8;
|
||||||
}
|
}
|
||||||
|
//bits are read backwards.
|
||||||
bits |= ((ulong)((m_bits >> (7 - m_readBits)) & 1)) <<(count-1-i);
|
bits |= ((ulong)((m_bits >> (7 - m_readBits)) & 1)) <<(count-1-i);
|
||||||
--m_bit_count;
|
--m_bit_count;
|
||||||
m_readBits++;
|
m_readBits++;
|
||||||
|
Loading…
Reference in New Issue
Block a user