Strip packet trailers from every VP9 layer frame (#4773)

VP9 SVC sends each spatial layer as its own encoded frame,
so a picture carries one trailer per layer, but only the
top layer's last packet has the RTP marker bit set.

Fix https://github.com/livekit/egress/issues/1347
This commit is contained in:
cnderrauber
2026-08-26 14:05:34 +08:00
committed by GitHub
parent b79f1c425f
commit 763ea15293
8 changed files with 159 additions and 20 deletions
+6 -4
View File
@@ -56,13 +56,15 @@ func (d *DownTrack) RetransmitForTest(
extTimestamp uint64,
layer int8,
sourcePkt []byte,
trailerStripped uint8,
) (int, error) {
epm := extPacketMeta{
packetMeta: packetMeta{
sourceSeqNo: sourceSeqNo,
targetSeqNo: targetSeqNo,
timestamp: timestamp,
layer: layer,
sourceSeqNo: sourceSeqNo,
targetSeqNo: targetSeqNo,
timestamp: timestamp,
layer: layer,
trailerStripped: trailerStripped,
},
extSequenceNumber: uint64(targetSeqNo),
extTimestamp: extTimestamp,