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-27 12:38:09 -05:00
parent 4ef1b8dc4c
commit 439afd15fa

View File

@ -277,6 +277,9 @@ public class VideoDepacketizer {
if (isReferencePictureNalu(cachedSpecialDesc.data[cachedSpecialDesc.offset+cachedSpecialDesc.length])) {
// This is the NALU code for I-frame data
waitingForIdrFrame = false;
// Cancel any pending IDR frame request
waitingForNextSuccessfulFrame = false;
}
}