Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit e87c5e2

Browse files
ios support (#15)
* Revert "Upgrade to emscripten v2.0.24" Because of confusing due to API changes. * ios support Co-authored-by: jeromewu <[email protected]>
1 parent 3dd15d7 commit e87c5e2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

wasm/build-scripts/build-ffmpeg.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,11 @@ FLAGS=(
3030
-s EXIT_RUNTIME=1 # exit runtime after execution
3131
-s MODULARIZE=1 # use modularized version to be more flexible
3232
-s EXPORT_NAME="createFFmpegCore" # assign export name for browser
33-
3433
-s EXPORTED_FUNCTIONS="$EXPORTED_FUNCTIONS" # export main and proxy_main funcs
35-
-s EXPORTED_RUNTIME_METHODS="[FS, cwrap, ccall, setValue, writeAsciiToMemory, lengthBytesUTF8, stringToUTF8, UTF8ToString]" # export preamble funcs
36-
-s INITIAL_MEMORY=2146435072 # 64 KB * 1024 * 16 * 2047 = 2146435072 bytes ~= 2 GB
34+
-s EXTRA_EXPORTED_RUNTIME_METHODS="[FS, cwrap, ccall, setValue, writeAsciiToMemory, lengthBytesUTF8, stringToUTF8, UTF8ToString]" # export preamble funcs
35+
-s INITIAL_MEMORY=33554432 # 32MB
36+
-s MAXIMUM_MEMORY=1073741824 # 1GB
37+
-s ALLOW_MEMORY_GROWTH=1
3738
--post-js wasm/src/post.js
3839
--pre-js wasm/src/pre.js
3940
$OPTIM_FLAGS

0 commit comments

Comments
 (0)