Skip to content

best way to save what you love

web/libav: properly instantiate libav property

dumbmoron83f46864b2d2
diff --git a/web/src/lib/libav.ts b/web/src/lib/libav.ts
index 824e87b9..e363866f 100644
--- a/web/src/lib/libav.ts
+++ b/web/src/lib/libav.ts
@@ -3,10 +3,11 @@ import LibAV, { type LibAV as LibAVInstance } from "@imput/libav.js-remux-cli";
import type { FileInfo, RenderParams } from "./types/libav";
export default class LibAVWrapper {
- libav!: LibAVInstance | null;
+ libav: LibAVInstance | null;
concurrency: number;
constructor() {
+ this.libav = null;
this.concurrency = Math.min(4, navigator.hardwareConcurrency);
}