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