2

i started using ios 5 on my app and what i found is that avfoundation is not working properly. i have standard code from https://web.archive.org/web/20160512235332/https://developer.apple.com/library/ios/qa/qa1702/_index.html#//apple_ref/doc/uid/DTS40010192

when running i have this error: : CGBitmapContextCreateImage: invalid context 0x0

i cheched and in:

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

sampleBuffer is nil. Whats wrong with this?

Cœur
  • 37,241
  • 25
  • 195
  • 267
woojtekr
  • 285
  • 1
  • 5
  • 16

0 Answers0