2

我开始在我的应用程序上使用 ios 5,我发现 avfoundation 无法正常工作。我有来自https://web.archive.org/web/20160512235332/https://developer.apple.com/library/ios/qa/qa1702/_index.html#//apple_ref/doc/uid/DTS40010192的标准代码

运行时出现此错误::CGBitmapContextCreateImage:无效上下文 0x0

我检查并在:

 - (void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnection:(AVCaptureConnection *)connection { 

样本缓冲区为零。这有什么问题?

4

0 回答 0