Clean capture timestamp code.
BUG= R=mflodman@webrtc.org, pbos@webrtc.org Review URL: https://webrtc-codereview.appspot.com/2134004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4675 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
06f1f74331
commit
77bf5c28c8
@ -204,11 +204,7 @@ int32_t VideoCaptureImpl::DeliverCapturedFrame(I420VideoFrame& captureFrame,
|
||||
|
||||
// Set the capture time
|
||||
if (capture_time != 0) {
|
||||
int64_t internal_capture_time = TickTime::MillisecondTimestamp();
|
||||
int64_t ntp_time_ms = internal_capture_time + delta_ntp_internal_ms_;
|
||||
int64_t time_since_capture = ntp_time_ms - capture_time;
|
||||
internal_capture_time -= time_since_capture;
|
||||
captureFrame.set_render_time_ms(internal_capture_time);
|
||||
captureFrame.set_render_time_ms(capture_time - delta_ntp_internal_ms_);
|
||||
} else {
|
||||
captureFrame.set_render_time_ms(TickTime::MillisecondTimestamp());
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user