Commit e3b38421 authored by Jerome Wu's avatar Jerome Wu

Revert prepend

parent f2ce6fe1
......@@ -12,7 +12,6 @@ FLAGS=(
-lavdevice -lavfilter -lavformat -lavcodec -lswresample -lswscale -lavutil -lpostproc -lm -lx264 -lx265 -lvpx -lwavpack -lmp3lame -lfdk-aac -lvorbis -lvorbisenc -lvorbisfile -logg -ltheora -ltheoraenc -ltheoradec -lz -pthread
fftools/ffmpeg_opt.c fftools/ffmpeg_filter.c fftools/ffmpeg_hw.c fftools/cmdutils.c fftools/ffmpeg.c
-o wasm/dist/ffmpeg-core.js
--pre-js wasm/src/prepend.js # fix worker script issue
-s USE_SDL=2 # use SDL2
-s USE_PTHREADS=1 # enable pthreads support
-s PROXY_TO_PTHREAD=1 # detach main() from browser/UI main thread
......
Module['locateFile'] = function(path, prefix) {
if (typeof window !== 'undefined'
&& typeof window.FFMPEG_CORE_WORKER_SCRIPT !== 'undefined'
&& path.endsWith('ffmpeg-core.worker.js')) {
return window.FFMPEG_CORE_WORKER_SCRIPT;
}
return prefix + path;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment