diff --git a/decode/decode.go b/decode/decode.go index 8538ae7cb..64ad6fbd6 100644 --- a/decode/decode.go +++ b/decode/decode.go @@ -293,7 +293,7 @@ func (d *Decoder) Search() (indexes []int) { for { idx = d.preambleFinder.next(slice[offset:]) if idx != -1 { - indexes = append(indexes, (offset+idx)*d.Cfg.SymbolLength2+symbolOffset) + indexes = append(indexes, (offset+idx)*d.DecCfg.SymbolLength2+symbolOffset) offset += idx + 1 } else { break