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:
@@ -844,6 +844,7 @@ func (r *RTPStatsSender) setSnInfo(esn uint64, ehsn uint64, pktSize uint16, hdrS
|
|||||||
snInfo := &r.snInfos[slot]
|
snInfo := &r.snInfos[slot]
|
||||||
snInfo.pktSize = pktSize
|
snInfo.pktSize = pktSize
|
||||||
snInfo.hdrSize = hdrSize
|
snInfo.hdrSize = hdrSize
|
||||||
|
snInfo.flags = 0
|
||||||
if marker {
|
if marker {
|
||||||
snInfo.flags |= snInfoFlagMarker
|
snInfo.flags |= snInfoFlagMarker
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user