Commit 774432bd authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Don't pass pid to addMapping.

addMapping assumes the piddelta is constant, so it doesn't need
the pid.
parent f0bb45e6
......@@ -45,7 +45,7 @@ func (m *Map) Map(seqno uint16, pid uint16) (bool, uint16, uint16) {
m.nextPid = pid
return true, seqno, 0
}
addMapping(m, seqno, pid, m.delta, m.pidDelta)
addMapping(m, seqno, m.delta, m.pidDelta)
m.next = seqno + 1
m.nextPid = pid
return true, seqno + m.delta, m.pidDelta
......@@ -70,7 +70,7 @@ func (m *Map) reset() {
m.entries = nil
}
func addMapping(m *Map, seqno, pid uint16, delta, pidDelta uint16) {
func addMapping(m *Map, seqno, delta, pidDelta uint16) {
if len(m.entries) == 0 {
// this shouldn't happen
return
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment