mirror of
https://github.com/aler9/gortsplib
synced 2025-10-04 06:46:42 +08:00
automatically remux oversized RTP/H264 packets; drop parameter ReadBufferSize
This commit is contained in:
@@ -29,9 +29,8 @@ func readRequest(br *bufio.Reader) (*base.Request, error) {
|
||||
}
|
||||
|
||||
func readRequestIgnoreFrames(br *bufio.Reader) (*base.Request, error) {
|
||||
buf := make([]byte, 2048)
|
||||
var req base.Request
|
||||
err := req.ReadIgnoreFrames(br, buf)
|
||||
err := req.ReadIgnoreFrames(2048, br)
|
||||
return &req, err
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user