Consistently handle the frame index as 32-bit

This commit is contained in:
Cameron Gutman committed 2026-11-10 20:21:33 -06:00
1 parent e80a786afe
commit 3387805deb
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -484,7 +484,7 @@ void connectionSendFrameFecStatus(PSS_FRAME_FEC_STATUS fecStatus) {
}
void connectionSawFrame(uint32_t frameIndex) {
LC_ASSERT_VT(!isBefore16(frameIndex, lastSeenFrame));
LC_ASSERT_VT(!isBefore32(frameIndex, lastSeenFrame));
uint64_t now = PltGetMillis();
+1 -1
View File
@@ -575,7 +575,7 @@ int RtpvAddPacket(PRTP_VIDEO_QUEUE queue, PRTP_PACKET packet, int length, PRTPV_
}
#ifndef LC_FUZZING
if (isBefore16(nvPacket->frameIndex, queue->currentFrameNumber)) {
if (isBefore32(nvPacket->frameIndex, queue->currentFrameNumber)) {
// Reject frames behind our current frame number
return RTPF_RET_REJECTED;
}