mirror of
https://github.com/aler9/gortsplib
synced 2025-10-04 23:02:45 +08:00
automatically remux oversized RTP/H264 packets; drop parameter ReadBufferSize
This commit is contained in:
@@ -37,9 +37,8 @@ func writeReqReadRes(conn net.Conn,
|
||||
}
|
||||
|
||||
func readResIgnoreFrames(br *bufio.Reader) (*base.Response, error) {
|
||||
buf := make([]byte, 2048)
|
||||
var res base.Response
|
||||
err := res.ReadIgnoreFrames(br, buf)
|
||||
err := res.ReadIgnoreFrames(2048, br)
|
||||
return &res, err
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user