0

Update dependencies

This commit is contained in:
eleksir
2025-10-12 13:55:23 +03:00
parent 897a2035d9
commit 3ad60b9c69
437 changed files with 26255 additions and 43246 deletions

View File

@@ -20,9 +20,10 @@ func (s *fseDecoder) buildDtable() error {
if v == -1 {
s.dt[highThreshold].setAddBits(uint8(i))
highThreshold--
v = 1
symbolNext[i] = 1
} else {
symbolNext[i] = uint16(v)
}
symbolNext[i] = uint16(v)
}
}
@@ -34,12 +35,10 @@ func (s *fseDecoder) buildDtable() error {
for ss, v := range s.norm[:s.symbolLen] {
for i := 0; i < int(v); i++ {
s.dt[position].setAddBits(uint8(ss))
for {
position = (position + step) & tableMask
for position > highThreshold {
// lowprob area
position = (position + step) & tableMask
if position <= highThreshold {
break
}
}
}
}