mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-04-12 18:56:13 +00:00
Assert that P-frames are not processed before IDR frames
This commit is contained in:
@@ -225,6 +225,10 @@ void LiCompleteVideoFrame(VIDEO_FRAME_HANDLE handle, int drStatus) {
|
||||
if (qdu->decodeUnit.frameType == FRAME_TYPE_IDR) {
|
||||
notifyKeyFrameReceived();
|
||||
}
|
||||
else {
|
||||
// We must never submit a P-frame until an IDR frame was processed
|
||||
LC_ASSERT(idrFrameProcessed);
|
||||
}
|
||||
|
||||
if (drStatus == DR_NEED_IDR) {
|
||||
Limelog("Requesting IDR frame on behalf of DR\n");
|
||||
|
||||
Reference in New Issue
Block a user