Keep RFI and IDR waits mutually exclusive

This commit is contained in:
Cameron Gutman committed 2026-11-12 21:22:23 -06:00
1 parent e64327c864
commit ae6633eedc
1 file changed
+3
+3
View File
@@ -137,6 +137,7 @@ static void dropFrameState(void) {
// received an IDR frame, if we explicitly need an IDR frame, or if we
// just dropped a partially processed IDR frame.
waitingForIdrFrame = true;
waitingForRefInvalFrame = false;
}
else {
waitingForRefInvalFrame = true;
@@ -154,6 +155,7 @@ static void dropFrameState(void) {
// Request an IDR frame
waitingForIdrFrame = true;
waitingForRefInvalFrame = false;
LiRequestIdrFrame();
}
@@ -783,6 +785,7 @@ void requestDecoderRefresh(void) {
// Wait for the next IDR frame
waitingForIdrFrame = true;
waitingForRefInvalFrame = false;
// Flush the decode unit queue
flushedEntries = LbqFlushQueueItems(&decodeUnitQueue);