From 3ce4010e890e64e2d890308bbe8cad4f5a424329 Mon Sep 17 00:00:00 2001 From: Raja Subramanian Date: Fri, 18 Mar 2022 11:25:20 +0530 Subject: [PATCH] Fix bracket (#531) --- pkg/sfu/buffer/rtpstats.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/sfu/buffer/rtpstats.go b/pkg/sfu/buffer/rtpstats.go index a68b83553..f8e2f4f6e 100644 --- a/pkg/sfu/buffer/rtpstats.go +++ b/pkg/sfu/buffer/rtpstats.go @@ -188,7 +188,7 @@ func (r *RTPStats) Update(rtph *rtp.Header, payloadSize int, paddingSize int, pa } // adjust start to account for out-of-order packets before o cycle completes - if !r.isCycleCompleted() && (rtph.SequenceNumber-uint16(r.extStartSN) > (1 << 15)) { + if !r.isCycleCompleted() && (rtph.SequenceNumber-uint16(r.extStartSN)) > (1<<15) { // NOTE: current sequence number is counted as loss as it will be deducted in the duplicate check below r.packetsLost += uint32(uint16(r.extStartSN) - rtph.SequenceNumber) r.extStartSN = uint32(rtph.SequenceNumber)