From 43a0ca57b53a87df0f0fe11499054fa692b32b31 Mon Sep 17 00:00:00 2001 From: Raja Subramanian Date: Fri, 20 Oct 2023 12:13:29 +0530 Subject: [PATCH] Clear flags in packet metadata cache before setting them. (#2160) Not sure if this could have resulted in bad FPS calculation, but could have contributed to it. --- pkg/sfu/buffer/rtpstats_sender.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/sfu/buffer/rtpstats_sender.go b/pkg/sfu/buffer/rtpstats_sender.go index b1c4c5df9..2f3bcd426 100644 --- a/pkg/sfu/buffer/rtpstats_sender.go +++ b/pkg/sfu/buffer/rtpstats_sender.go @@ -844,6 +844,7 @@ func (r *RTPStatsSender) setSnInfo(esn uint64, ehsn uint64, pktSize uint16, hdrS snInfo := &r.snInfos[slot] snInfo.pktSize = pktSize snInfo.hdrSize = hdrSize + snInfo.flags = 0 if marker { snInfo.flags |= snInfoFlagMarker }