处理rtmp时间戳超过0xFFFFFF的情况

This commit is contained in:
yangjiechina
2024-07-27 17:02:48 +08:00
parent 6758d1f977
commit 05a4bdb025
2 changed files with 18 additions and 10 deletions

View File

@@ -2,6 +2,7 @@ package stream
import "math"
// JitterBuffer 只处理乱序的JitterBuffer
type JitterBuffer struct {
maxSeqNum uint16
minSeqNum uint16
@@ -10,9 +11,9 @@ type JitterBuffer struct {
count int
minStartCount int
first bool
queue []interface{}
onPacket func(packet interface{})
first bool
}
func (j *JitterBuffer) emit() {