mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-12-03 03:31:27 +00:00
Consistently handle the frame index as 32-bit
This commit is contained in:
1 parent
e80a786afe
commit
3387805deb
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -484,7 +484,7 @@ void connectionSendFrameFecStatus(PSS_FRAME_FEC_STATUS fecStatus) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void connectionSawFrame(uint32_t frameIndex) {
|
void connectionSawFrame(uint32_t frameIndex) {
|
||||||
LC_ASSERT_VT(!isBefore16(frameIndex, lastSeenFrame));
|
LC_ASSERT_VT(!isBefore32(frameIndex, lastSeenFrame));
|
||||||
|
|
||||||
uint64_t now = PltGetMillis();
|
uint64_t now = PltGetMillis();
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -575,7 +575,7 @@ int RtpvAddPacket(PRTP_VIDEO_QUEUE queue, PRTP_PACKET packet, int length, PRTPV_
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifndef LC_FUZZING
|
#ifndef LC_FUZZING
|
||||||
if (isBefore16(nvPacket->frameIndex, queue->currentFrameNumber)) {
|
if (isBefore32(nvPacket->frameIndex, queue->currentFrameNumber)) {
|
||||||
// Reject frames behind our current frame number
|
// Reject frames behind our current frame number
|
||||||
return RTPF_RET_REJECTED;
|
return RTPF_RET_REJECTED;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user