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)
|
r.updateJitter(rtph, packetTime)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -1623,7 +1623,7 @@ func (f *Forwarder) getTranslationParamsVideo(extPkt *buffer.ExtPacket, layer in
|
|||||||
if f.currentLayers.Temporal != f.targetLayers.Temporal {
|
if f.currentLayers.Temporal != f.targetLayers.Temporal {
|
||||||
incomingVP8, ok := extPkt.Payload.(buffer.VP8)
|
incomingVP8, ok := extPkt.Payload.(buffer.VP8)
|
||||||
if ok {
|
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
|
f.currentLayers.Temporal = f.targetLayers.Temporal
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user