mirror of
https://github.com/livekit/livekit.git
synced 2026-05-15 11:45:36 +00:00
Ensure temporal is not at -1 for non-simulcast streams (#1441)
This commit is contained in:
@@ -407,7 +407,6 @@ func (r *RTPStats) Update(rtph *rtp.Header, payloadSize int, paddingSize int, pa
|
||||
|
||||
r.updateJitter(rtph, packetTime)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return
|
||||
|
||||
@@ -1623,7 +1623,7 @@ func (f *Forwarder) getTranslationParamsVideo(extPkt *buffer.ExtPacket, layer in
|
||||
if f.currentLayers.Temporal != f.targetLayers.Temporal {
|
||||
incomingVP8, ok := extPkt.Payload.(buffer.VP8)
|
||||
if ok {
|
||||
if incomingVP8.TIDPresent == 1 && incomingVP8.TID <= uint8(f.targetLayers.Temporal) {
|
||||
if incomingVP8.TIDPresent == 0 || incomingVP8.TID <= uint8(f.targetLayers.Temporal) {
|
||||
f.currentLayers.Temporal = f.targetLayers.Temporal
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user