Cancel the pending IDR frame request if we got a spurious IDR frame after a stream discontinuity

This commit is contained in:
Cameron Gutman 2016-05-26 17:38:03 -05:00
parent 69c8881187
commit 2103b62386

View File

@ -319,6 +319,9 @@ static void processRtpPayloadSlow(PNV_VIDEO_PACKET videoPacket, PBUFFER_DESC cur
if (isSeqReferenceFrameStart(&specialSeq)) {
// No longer waiting for an IDR frame
waitingForIdrFrame = 0;
// Cancel any pending IDR frame request
waitingForNextSuccessfulFrame = 0;
}
}