1、问题现象:
playback在硬解码出图后,点击返回按钮出现crash问题
2、问题分析:
通过debug调试发现crash在transformToImage方法中由sampleBuffer转image时
3、问题解决:
a、CMSampleBufferRef转image方法由 CGDataProviderCreateWithData换成CGBitmapContextCreate。b、Camera.m: didHWDecompress方法中的
camera:didReceiveRawDataFrame:VideoWidth:VideoHeight:不需要丢到 dispatch_async(dispatch_get_main_queue(), ^{} )。