reuse UDP buffers when possible (#639)

This commit is contained in:
Alessandro Ros
2024-10-24 14:28:53 +02:00
committed by GitHub
parent 21e06b0f68
commit 49ee03f0b1
5 changed files with 91 additions and 46 deletions

View File

@@ -23,7 +23,7 @@ import (
"github.com/bluenviron/gortsplib/v4/pkg/sdp"
)
type readFunc func([]byte)
type readFunc func([]byte) bool
func stringsReverseIndex(s, substr string) int {
for i := len(s) - 1 - len(substr); i >= 0; i-- {