From 4c62b5d23a95e175093ca5accc02c874d052a3ec Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Mon, 3 Oct 2022 18:25:08 -0500 Subject: [PATCH] Fix fallback handling of RFI on older servers --- src/VideoDepacketizer.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/VideoDepacketizer.c b/src/VideoDepacketizer.c index c5831f6..9e7d01a 100644 --- a/src/VideoDepacketizer.c +++ b/src/VideoDepacketizer.c @@ -733,7 +733,11 @@ static void processRtpPayload(PNV_VIDEO_PACKET videoPacket, int length, } else { // Hope for the best with older servers - waitingForRefInvalFrame = false; + if (waitingForRefInvalFrame) { + connectionDetectedFrameLoss(startFrameNumber, frameIndex - 1); + waitingForRefInvalFrame = false; + waitingForNextSuccessfulFrame = false; + } } if (APP_VERSION_AT_LEAST(7, 1, 446)) {