HI,Anyone has experiance decoding a raw h264 stream with Periodic Intra Refresh using AVSampleBufferDisplayLayer ? I have an IP camera that sends h264 row stream with Periodic Intra Refresh over UDP.I'm building a CMBlockBuffer, appending all the NALU of a frame, then create a CMSampleBuffer with DisplayImmediately attachement and enque it to the AVSampleBufferDisplayLayer as descibed in WWDC - 2014 Direct Access to
Video Encoding and Decoding video.My code is:// Called with all NALU of a frame as NSData (with start code replaced by the nalu size) - (void)didReceiveNalu:(NSArray*)naluArray { OSStatus osstatus; CMBlockBufferRef blockBufferRef = NULL; CMSampleBufferRef sampleBufferRef = NULL; // create a block buffer osstatus = CMBlockBufferCreateEmpty(CFAllocatorGetDefault(), naluArray.count, 0, &blockBufferRef); if (osstatus != kCMBlockBufferNoErr) { NSError* error = [NSError errorWithDomain:NSOSStatusErrorDomain code:osstatus userInfo:nil]; NSLog(@Error creating block buffer = %@, [error descri