🎥 Make videos programmatically with React
fix the actual bug
Jonny Burgerfc8960e05c6a
diff --git a/packages/webcodecs/src/create/matroska/matroska-utils.ts b/packages/webcodecs/src/create/matroska/matroska-utils.tsindex 5b7c43e645..4ac6db17ba 100644--- a/packages/webcodecs/src/create/matroska/matroska-utils.ts+++ b/packages/webcodecs/src/create/matroska/matroska-utils.ts@@ -29,7 +29,7 @@ function putUintDynamic(number: number, minimumLength: number | null) {// Calculate the minimum number of bytes needed to store the integerconst length = Math.max(- minimumLength ?? 0,+ minimumLength ?? 1,Math.ceil(Math.log2(number + 1) / 8),);const bytes = new Uint8Array(length);@@ -52,7 +52,6 @@ const makeFromStructure = (const arrays: Uint8Array[] = [];const struct = MediaParserInternals.ebmlMap[getIdForName(fields.type)];-if (struct.type === 'uint8array') {return {bytes: fields.value as Uint8Array,