提交 24cf7005 编写于 作者: J jp9000

Mac A/V capture: Fix minor issue

Use the port clock instead of the master clock
上级 71e32f89
......@@ -86,9 +86,10 @@ struct av_capture {
uint8_t *addr = CVPixelBufferGetBaseAddress(img);
AVCaptureInputPort *port = capture->device_input.ports[0];
CMTime host_pts = CMSyncConvertTime(info.presentationTimeStamp,
capture->session.masterClock,
CMClockGetHostTimeClock());
port->clock, CMClockGetHostTimeClock());
frame->data[0] = addr;
frame->timestamp = host_pts.value;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册