Cannot convert value of type 'CMSampleTimingInfo' to expected argument type 'UnsafePointer<CMSampleTimingInfo>'
<pre><code>let duration = CMSampleBufferGetDuration(self)
let timeStamp = CMSampleBufferGetPresentationTimeStamp(self)
let decodeTimeStamp = CMSampleBufferGetDecodeTimeStamp(self)
let sampleTime = CMSampleTimingInfo(duration: duration, presentationTimeStamp: timeStamp, decodeTimeStamp: decodeTimeStamp)

let videoInfo: CMVideoFormatDescriptionRef?
CMVideoFormatDescriptionCreateForImageBuffer(kCFAllocatorDefault, pixelBuffer!, &amp;videoInfo)

var oBuf: CMSampleBufferRef?
CMSampleBufferCreateForImageBuffer(kCFAllocatorDefault, pixelBuffer!, true, nil, nil, videoInfo!, sampleTime, &amp;oBuf)
</code></pre>

<p><code>self</code> is an instance of CMSampleBufferRef.</p>

<p>The last line throws the build error: <code>Cannot convert value of type 'CMSampleTimingInfo' to expected argument type 'UnsafePointer&lt;CMSampleTimingInfo&gt;'</code></p>