diff --git a/src/SendSideBandwidthEstimation.cpp b/src/SendSideBandwidthEstimation.cpp index 545b8ad73..af04e11b8 100644 --- a/src/SendSideBandwidthEstimation.cpp +++ b/src/SendSideBandwidthEstimation.cpp @@ -122,8 +122,9 @@ void SendSideBandwidthEstimation::ReceivedFeedback(uint8_t feedbackNum, const st //For each packet for (const auto& feedback : packets) { - //Get feedback data - auto transportSeqNum = feedback.first; + //We need to wrap the sequence number as the rtcp reports calculates it as base+counter + // which is required to be able to retrieve the packets in increasing order her + auto transportSeqNum = feedback.first & 0xFFFF; auto receivedTime = feedback.second; //Get packet