mirror of
https://github.com/livekit/livekit.git
synced 2026-09-01 20:09:08 +00:00
Do not start forwarding on an out-of-order packet. (#2917)
It is possible that old packets arrive on receiver. If subscriber starts on that, the first packet time would be incorrect. Do not start forwarding on out-of-order packets.
This commit is contained in:
@@ -66,6 +66,7 @@ type ExtPacket struct {
|
||||
RawPacket []byte
|
||||
DependencyDescriptor *ExtDependencyDescriptor
|
||||
AbsCaptureTimeExt *act.AbsCaptureTime
|
||||
IsOutOfOrder bool
|
||||
}
|
||||
|
||||
// Buffer contains all packets
|
||||
@@ -763,6 +764,7 @@ func (b *Buffer) getExtPacket(rtpPacket *rtp.Packet, arrivalTime int64, flowStat
|
||||
Spatial: InvalidLayerSpatial,
|
||||
Temporal: InvalidLayerTemporal,
|
||||
},
|
||||
IsOutOfOrder: flowState.IsOutOfOrder,
|
||||
}
|
||||
|
||||
if len(rtpPacket.Payload) == 0 {
|
||||
|
||||
Reference in New Issue
Block a user