Some optimisations in the forwarding path. (#2035)

* WIP commit

* WIP

* Fix tests

* clean up

* Release pool in pacer

* fix tests

* fix tests

* remove debug

* fix test
This commit is contained in:
Raja Subramanian
2024-02-20 10:32:35 +05:30
committed by GitHub
parent 91c320770b
commit 4404b6796b
12 changed files with 356 additions and 283 deletions
+4 -4
View File
@@ -45,10 +45,10 @@ func (n *Null) SetLast(_extPkt *buffer.ExtPacket) {
func (n *Null) UpdateOffsets(_extPkt *buffer.ExtPacket) {
}
func (n *Null) UpdateAndGet(_extPkt *buffer.ExtPacket, snOutOfOrder bool, snHasGap bool, maxTemporal int32) ([]byte, error) {
return nil, nil
func (n *Null) UpdateAndGet(_extPkt *buffer.ExtPacket, snOutOfOrder bool, snHasGap bool, maxTemporal int32, outputHeader []byte) (int, int, error) {
return 0, 0, nil
}
func (n *Null) UpdateAndGetPadding(newPicture bool) ([]byte, error) {
return nil, nil
func (n *Null) UpdateAndGetPadding(newPicture bool, outputHeader []byte) (int, error) {
return 0, nil
}