mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-07-01 23:35:58 +00:00
Immediately request an IDR frame on corrupt frame
This commit is contained in:
parent
e951302927
commit
f2dd7888f7
@ -664,8 +664,13 @@ static void processRtpPayload(PNV_VIDEO_PACKET videoPacket, int length,
|
||||
Limelog("Depacketizer detected corrupt frame: %d", frameIndex);
|
||||
decodingFrame = false;
|
||||
nextFrameNumber = frameIndex + 1;
|
||||
waitingForNextSuccessfulFrame = true;
|
||||
dropFrameState();
|
||||
if (waitingForIdrFrame) {
|
||||
LiRequestIdrFrame();
|
||||
}
|
||||
else {
|
||||
connectionDetectedFrameLoss(startFrameNumber, frameIndex);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user