mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-06-17 06:11:03 +00:00
Use isBefore() for sequence number comparison
This commit is contained in:
+1
-1
@@ -272,7 +272,7 @@ int RtpfAddPacket(PRTP_FEC_QUEUE queue, PRTP_PACKET packet, PRTPFEC_QUEUE_ENTRY
|
|||||||
return RTPF_RET_REJECTED;
|
return RTPF_RET_REJECTED;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (packet->sequenceNumber < queue->bufferFirstParitySequenceNumber) {
|
if (isBefore(packet->sequenceNumber, queue->bufferFirstParitySequenceNumber)) {
|
||||||
queue->receivedBufferDataPackets++;
|
queue->receivedBufferDataPackets++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user