rtph264: fix decode error (#150)

Intact NALUs received after corrupted NALUs were wrongly discarded.
This commit is contained in:
Alessandro Ros
2022-11-14 14:30:30 +01:00
committed by GitHub
parent 12c8845fef
commit 764ac1ce35
5 changed files with 183 additions and 293 deletions

View File

@@ -7,6 +7,10 @@ import (
"github.com/pion/rtp"
)
const (
rtpVersion = 2
)
func randUint32() uint32 {
var b [4]byte
rand.Read(b[:])