Ensure temporal is not at -1 for non-simulcast streams (#1441)

This commit is contained in:
Raja Subramanian
2023-02-18 09:52:53 +05:30
committed by GitHub
parent 6da9e85636
commit 0dcd4e4856
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -407,7 +407,6 @@ func (r *RTPStats) Update(rtph *rtp.Header, payloadSize int, paddingSize int, pa
r.updateJitter(rtph, packetTime)
}
}
return
+1 -1
View File
@@ -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
}
}