mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-10-26 13:59:58 +00:00
Fix handling of a partially dropped IDR frame
This commit is contained in:
1 parent
d85371cd8c
commit
be438856af
1 file changed
+3
-2
@@ -103,9 +103,10 @@ static void dropFrameState(void) {
|
|||||||
// We're dropping frame state now
|
// We're dropping frame state now
|
||||||
dropStatePending = false;
|
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
|
// 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;
|
waitingForIdrFrame = true;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in new issue
Block a user