2011-06-11 127 views
2

我开始在我的应用程序上使用ios 5,我发现avfoundation无法正常工作。 :CGBitmapContextCreateImage:无效的上下文为0x0AVFoundation在ios5上无法正常工作

我cheched和在:

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

sampleBuffer是nil i上运行时,我有这种错误具有从https://web.archive.org/web/20160512235332/https://developer.apple.com/library/ios/qa/qa1702/_index.html#//apple_ref/doc/uid/DTS40010192

标准代码。 这是怎么回事?

+0

发布您的代码在哪里使用CGBitmapContextCreateImage – Rams 2011-06-11 13:07:29

+0

'5'的iOS是保密协议。请在开发者论坛中提问。 – 2011-06-11 13:45:20

回答