🎥 Make videos programmatically with React
Update compositor.ts
Jonny Burger6d46ab361a5d
diff --git a/packages/renderer/src/compositor/compositor.ts b/packages/renderer/src/compositor/compositor.tsindex 54388e4c0f..a32e095105 100644--- a/packages/renderer/src/compositor/compositor.ts+++ b/packages/renderer/src/compositor/compositor.ts@@ -174,7 +174,7 @@ export const startCompositor = <T extends keyof CompositorCommand>({separatorIndex++;if (separatorIndex > outputBuffer.length) {- throw new Error('separatorIndex out of bounds');+ throw new Error('separatorIndex out of bounds: '+ JSON.stringify(outputBuffer));}nonceString += String.fromCharCode(nextDigit);@@ -190,7 +190,7 @@ export const startCompositor = <T extends keyof CompositorCommand>({separatorIndex++;if (separatorIndex > outputBuffer.length) {- throw new Error('separatorIndex out of bounds');+ throw new Error('separatorIndex out of bounds ' + JSON.stringify(outputBuffer));}lengthString += String.fromCharCode(nextDigit);@@ -206,7 +206,7 @@ export const startCompositor = <T extends keyof CompositorCommand>({separatorIndex++;if (separatorIndex > outputBuffer.length) {- throw new Error('separatorIndex out of bounds');+ throw new Error('separatorIndex out of bounds ' + JSON.stringify(outputBuffer));}statusString += String.fromCharCode(nextDigit);