mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 12:50:01 +00:00
web/libav: properly instantiate libav property
This commit is contained in:
parent
038c29dc8d
commit
83f46864b2
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue