mirror of
https://github.com/aler9/gortsplib
synced 2025-11-02 03:22:58 +08:00
rtph264: fix decode error (#150)
Intact NALUs received after corrupted NALUs were wrongly discarded.
This commit is contained in:
@@ -7,6 +7,10 @@ import (
|
||||
"github.com/pion/rtp"
|
||||
)
|
||||
|
||||
const (
|
||||
rtpVersion = 2
|
||||
)
|
||||
|
||||
func randUint32() uint32 {
|
||||
var b [4]byte
|
||||
rand.Read(b[:])
|
||||
|
||||
Reference in New Issue
Block a user