Skip to content

best way to save what you love

web/libav: allow passing options to init

wukko945f87d93ba0
diff --git a/web/src/lib/libav.ts b/web/src/lib/libav.ts
index 6beac0c5..fc158934 100644
--- a/web/src/lib/libav.ts
+++ b/web/src/lib/libav.ts
@@ -15,10 +15,14 @@ export default class LibAVWrapper {
this.onProgress = onProgress;
}
- init() {
+ init(options?: LibAV.LibAVOpts) {
+ if (!options) options = {
+ yesthreads: true,
+ }
+
if (this.concurrency && !this.libav) {
this.libav = LibAV.LibAV({
- yesthreads: true,
+ ...options,
base: '/_libav'
});
}