Crash on CFDataGetBytes(image, CFRangeMake(0, CFDataGetLength(image)), destPixels);
===

I am making video of screen then crash on this line  

 CFDataGetBytes(image, CFRangeMake(0, CFDataGetLength(image)), destPixels);  
//XXX:  will work if the pixel buffer is contiguous and has the same bytesPerRow as the input data      