mirror of
https://github.com/aler9/gortsplib
synced 2025-10-22 06:39:28 +08:00
add an upper limit on AU/NALU sizes in order to prevent RAM exhaustion
This commit is contained in:
@@ -8,11 +8,6 @@ import (
|
||||
"github.com/pion/rtp"
|
||||
)
|
||||
|
||||
const (
|
||||
rtpVersion = 0x02
|
||||
rtpClockRate = 90000 // h264 always uses 90khz
|
||||
)
|
||||
|
||||
func randUint32() uint32 {
|
||||
var b [4]byte
|
||||
rand.Read(b[:])
|
||||
|
Reference in New Issue
Block a user