ios - Swift 代码错误 : CMVideoFormatDescriptionGetCleanAperture

标签 ios swift compiler-errors cgrect

enter image description here

let fdesc : CMFormatDescriptionRef = CMSampleBufferGetFormatDescription(sampleBuffer)!

let clap  : CGRect =  CMVideoFormatDescriptionGetCleanAperture(fdesc, false)


Error: cannot invoke 'CMVideoFormatDescriptionGetCleanAperture' with an argument list of type '(CMFormatDescriptionRef, Bool)'

最佳答案

尝试 let fdesc: CMFormatDescription = ...

关于ios - Swift 代码错误 : CMVideoFormatDescriptionGetCleanAperture,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34518057/

相关文章:

c++ - 使用模板类时出现内部编译错误

c# - 将空值转换为类型

swift - 在 Swift 中,所有对象变量都应该是可选的吗?

swift - Vapor MongoDB 提供程序错误

swift - 逻辑运算符的类型是什么?

objective-c - 改变实例 NSArray

ruby-on-rails - 在scss中编译错误

ios - OCMock 在 NSMutableAttributedString 上模拟 'initWithAttributedString' 失败

ios - 如何获取 UICollectionView 的后代中原型(prototype)单元格的大小?

ios - 对应于 UIColors 数组的随机数 - ERROR