4.28 beta

This commit is contained in:
Igor Pavlov
2005-09-26 00:00:00 +00:00
committed by Kornel Lesiński
parent d66cf2fcf3
commit 32c73adef4
35 changed files with 108 additions and 101 deletions

View File

@@ -112,13 +112,12 @@ HRESULT CDecoder::CodeSpec(UInt32 curSize)
UInt32 len;
if(_isRep[state.Index].Decode(&_rangeDecoder) == 1)
{
bool readLen = true;
len = 0;
if(_isRepG0[state.Index].Decode(&_rangeDecoder) == 0)
{
if(_isRep0Long[state.Index][posState].Decode(&_rangeDecoder) == 0)
{
state.UpdateShortRep();
readLen = false;
len = 1;
}
}
@@ -141,7 +140,7 @@ HRESULT CDecoder::CodeSpec(UInt32 curSize)
rep1 = rep0;
rep0 = distance;
}
if (readLen)
if (len == 0)
{
len = _repMatchLenDecoder.Decode(&_rangeDecoder, posState) + kMatchMinLen;
state.UpdateRep();