Browse Source

Fix typo in mac-avcapture

Palana 11 years ago
parent
commit
e9b6d1d189
1 changed files with 2 additions and 3 deletions
  1. 2 3
      plugins/mac-avcapture/av-capture.m

+ 2 - 3
plugins/mac-avcapture/av-capture.m

@@ -104,9 +104,8 @@ static inline void update_frame_size(struct source_frame *frame,
 		target_pts = info.presentationTimeStamp;
 	}
 
-	CMTime target_pts_nano = 
-		CMTimeConvertScale(info.presentationTimeStamp, NANO_TIMESCALE,
-				kCMTimeRoundingMethod_Default);
+	CMTime target_pts_nano = CMTimeConvertScale(target_pts, NANO_TIMESCALE,
+			kCMTimeRoundingMethod_Default);
 	frame->timestamp = target_pts_nano.value;
 
 	CVPixelBufferLockBaseAddress(img, kCVPixelBufferLock_ReadOnly);