mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-10-11 19:14:08 +00:00
Fix handling of a partially dropped IDR frame
This commit is contained in:
@@ -103,9 +103,10 @@ static void dropFrameState(void) {
|
||||
// We're dropping frame state now
|
||||
dropStatePending = false;
|
||||
|
||||
if (strictIdrFrameWait || !idrFrameProcessed || waitingForIdrFrame) {
|
||||
if (strictIdrFrameWait || !idrFrameProcessed || waitingForIdrFrame || (nalChainHead && frameType == FRAME_TYPE_IDR)) {
|
||||
// We'll need an IDR frame now if we're in non-RFI mode, if we've never
|
||||
// received an IDR frame, or if we explicitly need an IDR frame.
|
||||
// received an IDR frame, if we explicitly need an IDR frame, or if we
|
||||
// just dropped a partially processed IDR frame.
|
||||
waitingForIdrFrame = true;
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user