Assert that P-frames are not processed before IDR frames
This commit is contained in:
parent
56d6b7ff5a
commit
549058d9d1
1 changed files with 4 additions and 0 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue