web/libav: fix import double slash, use unlinkreadaheadfile

This commit is contained in:
dumbmoron 2024-08-12 20:36:24 +00:00
parent 5fb9b1c809
commit bc272b910e
No known key found for this signature in database

View file

@ -15,8 +15,9 @@ export default class LibAVWrapper {
if (!this.libav) {
this.libav = await LibAV.LibAV({
yesthreads: true,
base: '/_libav/'
})
base: '/_libav'
});
}
}
}
@ -78,10 +79,7 @@ export default class LibAVWrapper {
]);
await this.libav.unlink(outputName);
// FIXME: this is not correct, and needs to be replaced
// with unlinkmkreadaheadfile().
await this.libav.unlink("input");
await this.libav.unlinkreadaheadfile("input");
const renderBlob = new Blob(
[ writtenData ],