From 3387805debc1d6ce4acc9c5c8d7f2bf53137884f Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Tue, 10 Nov 2026 20:21:33 -0600 Subject: [PATCH] Consistently handle the frame index as 32-bit --- src/ControlStream.c | 2 +- src/RtpVideoQueue.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ControlStream.c b/src/ControlStream.c index 9be23b5..0e8be31 100644 --- a/src/ControlStream.c +++ b/src/ControlStream.c @@ -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(); diff --git a/src/RtpVideoQueue.c b/src/RtpVideoQueue.c index a4e022e..59fd9fb 100644 --- a/src/RtpVideoQueue.c +++ b/src/RtpVideoQueue.c @@ -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; }