web/libav: properly instantiate libav property

This commit is contained in:
dumbmoron 2024-08-12 20:03:30 +00:00
parent 038c29dc8d
commit 83f46864b2
No known key found for this signature in database

View file

@ -3,10 +3,11 @@ import LibAV, { type LibAV as LibAVInstance } from "@imput/libav.js-remux-cli";
import type { FileInfo, RenderParams } from "./types/libav"; import type { FileInfo, RenderParams } from "./types/libav";
export default class LibAVWrapper { export default class LibAVWrapper {
libav!: LibAVInstance | null; libav: LibAVInstance | null;
concurrency: number; concurrency: number;
constructor() { constructor() {
this.libav = null;
this.concurrency = Math.min(4, navigator.hardwareConcurrency); this.concurrency = Math.min(4, navigator.hardwareConcurrency);
} }