Skip to content

Commit

Permalink
cosmetic
Browse files Browse the repository at this point in the history
  • Loading branch information
ibc authored and piranna committed Feb 8, 2023
1 parent 899db12 commit 5fd9efd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions worker/src/RTC/SimulcastConsumer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -828,10 +828,11 @@ namespace RTC
this->tsOffset = tsOffset;

// Sync our RTP stream's sequence number.
// If previous frame has not been sent completely when we switch layer, we can tell
// libwebrtc that previous frame is incomplete by skipping one RTP sequence number.
// 'packet->GetSequenceNumber() -2' may increase SeqManager::base and increase the
// output sequence number.
// If previous frame has not been sent completely when we switch layer,
// we can tell libwebrtc that previous frame is incomplete by skipping
// one RTP sequence number.
// 'packet->GetSequenceNumber() -2' may increase SeqManager::base and
// increase the output sequence number.
// https://github.com/versatica/mediasoup/issues/408
this->rtpSeqManager.Sync(packet->GetSequenceNumber() - (this->lastSentPacketHasMarker ? 1 : 2));

Expand Down

0 comments on commit 5fd9efd

Please sign in to comment.