Ignore receiver reports that have a sequence number before first packet. (#1745)

This commit is contained in:
Raja Subramanian
2023-05-28 10:05:35 +05:30
committed by GitHub
parent e99aabd908
commit ea57e4f2c1
5 changed files with 14 additions and 13 deletions
+1 -2
View File
@@ -1649,7 +1649,7 @@ func (f *Forwarder) maybeStart() {
f.firstTS = extPkt.Packet.Timestamp
}
func (f *Forwarder) GetSnTsForPadding(num int) ([]SnTs, error) {
func (f *Forwarder) GetSnTsForPadding(num int, forceMarker bool) ([]SnTs, error) {
f.lock.Lock()
defer f.lock.Unlock()
@@ -1660,7 +1660,6 @@ func (f *Forwarder) GetSnTsForPadding(num int) ([]SnTs, error) {
// not get out-of-sync. But, when a stream is paused,
// force a frame marker as a restart of the stream will
// start with a key frame which will reset the decoder.
forceMarker := false
if !f.vls.GetTarget().IsValid() {
forceMarker = true
}