Call notifyKeyFrameReceived() before the decoder processes the frame

We don't care if the decoder processes it successfully.
This commit is contained in:
Cameron Gutman
2022-11-21 02:22:26 -06:00
parent 1e582e3e58
commit 4840e431f4

View File

@@ -274,10 +274,6 @@ void LiCompleteVideoFrame(VIDEO_FRAME_HANDLE handle, int drStatus) {
PQUEUED_DECODE_UNIT qdu = handle;
PLENTRY_INTERNAL lastEntry;
if (qdu->decodeUnit.frameType == FRAME_TYPE_IDR) {
notifyKeyFrameReceived();
}
if (drStatus == DR_NEED_IDR) {
Limelog("Requesting IDR frame on behalf of DR\n");
requestDecoderRefresh();
@@ -442,6 +438,7 @@ static void reassembleFrame(int frameNumber) {
// IDR frames will have leading CSD buffers
if (nalChainHead->bufferType != BUFFER_TYPE_PICDATA) {
qdu->decodeUnit.frameType = FRAME_TYPE_IDR;
notifyKeyFrameReceived();
}
else {
qdu->decodeUnit.frameType = FRAME_TYPE_PFRAME;