From d09dd90a73b3e2633fd00728ba3bdb2de0e863eb Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Wed, 12 Aug 2020 18:07:10 -0700 Subject: [PATCH] Fix hardcoded tick unit duration which is incorrect on Apple silicon --- app/streaming/video/ffmpeg-renderers/vt.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/streaming/video/ffmpeg-renderers/vt.mm b/app/streaming/video/ffmpeg-renderers/vt.mm index c140112e..3eb77269 100644 --- a/app/streaming/video/ffmpeg-renderers/vt.mm +++ b/app/streaming/video/ffmpeg-renderers/vt.mm @@ -282,7 +282,7 @@ public: CMSampleTimingInfo timingInfo = { .duration = kCMTimeInvalid, .decodeTimeStamp = kCMTimeInvalid, - .presentationTimeStamp = CMTimeMake(mach_absolute_time(), 1000 * 1000 * 1000) + .presentationTimeStamp = CMClockMakeHostTimeFromSystemUnits(mach_absolute_time()) }; CMSampleBufferRef sampleBuffer;