代码如图所示,把CMSampleBufferRef转成UIImage,红框的两句留着,会崩溃,崩溃原因:Assertion failed: (!space->is_singleton), function color_space_dealloc, file /BuildRoot/Library/Caches/com.apple.xbs/Sources/Quartz2D/Quartz2D-1033.1/CoreGraphics/ColorSpaces/color-space.c, line 102.
但是注掉的话,又会内存泄漏,完全被搞懵逼了