Fix nack issue for svc codecs (#1856)

* Fix nack issue for svc codecs

* Fix test
This commit is contained in:
cnderrauber
2023-07-07 15:46:18 +08:00
committed by GitHub
parent 919355c873
commit 873c87f24b
3 changed files with 11 additions and 8 deletions
+4 -2
View File
@@ -1599,8 +1599,10 @@ func (f *Forwarder) getTranslationParamsVideo(extPkt *buffer.ExtPacket, layer in
if !result.IsSelected {
tp.shouldDrop = true
if f.started && result.IsRelevant {
f.rtpMunger.UpdateAndGetSnTs(extPkt) // call to update highest incoming sequence number and other internal structures
f.rtpMunger.PacketDropped(extPkt)
// call to update highest incoming sequence number and other internal structures
if _, err := f.rtpMunger.UpdateAndGetSnTs(extPkt); err == nil {
f.rtpMunger.PacketDropped(extPkt)
}
}
return tp, nil
}