diff --git a/web/src/lib/libav/webcodecs.ts b/web/src/lib/libav/webcodecs.ts index 91fffecb..b8d9c60b 100644 --- a/web/src/lib/libav/webcodecs.ts +++ b/web/src/lib/libav/webcodecs.ts @@ -7,7 +7,7 @@ const has = (obj: T, key: string) => { export default class WebCodecsWrapper { #libav: Promise; - #ready: Promise | undefined; + #ready?: Promise; constructor(libav: Promise) { this.#libav = libav; @@ -17,7 +17,7 @@ export default class WebCodecsWrapper { if (typeof this.#ready === 'undefined') { this.#ready = LibAVPolyfill.load({ polyfill: false, - LibAV: await this.#libav + LibAV: { LibAV: () => this.#libav } }); }