🎥 Make videos programmatically with React
`@remotion/webcodecs`: Be okay with output item shifting by 1 microsecond
Jonny Burger34fc6f4e6594
diff --git a/packages/webcodecs/src/io-manager/io-synchronizer.ts b/packages/webcodecs/src/io-manager/io-synchronizer.tsindex 35bebae7da..4c7c70080c 100644--- a/packages/webcodecs/src/io-manager/io-synchronizer.ts+++ b/packages/webcodecs/src/io-manager/io-synchronizer.ts@@ -23,7 +23,8 @@ export const makeIoSynchronizer = ({const getQueuedItems = () => {inputs = inputs.filter(- (input) => Math.floor(input) > Math.floor(lastOutput),+ // In chrome, the last output sometimes shifts the timestamp by 1 macrosecond - allowing this to happen+ (input) => Math.floor(input) > Math.floor(lastOutput) + 1,);return inputs.length;};