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.
This commit is contained in:
Raja Subramanian
2023-10-20 12:13:29 +05:30
committed by GitHub
parent 0d7477178e
commit 43a0ca57b5
+1
View File
@@ -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
}