U createFFmpeg.js
This commit is contained in:
parent
8e6d6cea5e
commit
d04a7a95a3
@ -88,7 +88,8 @@ module.exports = (_options = {}) => {
|
|||||||
return prefix + path;
|
return prefix + path;
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
ffmpeg = Core.cwrap('proxy_main', 'number', ['number', 'number']);
|
const mainName = options.pthread === 0 ? '_main' : 'proxy_main';
|
||||||
|
ffmpeg = Core.cwrap(mainName, 'number', ['number', 'number']);
|
||||||
log('info', 'ffmpeg-core loaded');
|
log('info', 'ffmpeg-core loaded');
|
||||||
} else {
|
} else {
|
||||||
throw Error('ffmpeg.wasm was loaded, you should not load it again, use ffmpeg.isLoaded() to check next time.');
|
throw Error('ffmpeg.wasm was loaded, you should not load it again, use ffmpeg.isLoaded() to check next time.');
|
||||||
|
Loading…
Reference in New Issue
Block a user