Skip to content

Commit 43c6fda

Browse files
author
Max Christoph
committed
Allow webassembly to use up to 4GB of memory.
1 parent 4f34ae5 commit 43c6fda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/ffmpeg-wasm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ CONF_FLAGS=(
3737
-sMODULARIZE # modularized to use as a library
3838
${FFMPEG_MT:+ -sINITIAL_MEMORY=1024MB} # ALLOW_MEMORY_GROWTH is not recommended when using threads, thus we use a large initial memory
3939
${FFMPEG_MT:+ -sPTHREAD_POOL_SIZE=32} # use 32 threads
40-
${FFMPEG_ST:+ -sINITIAL_MEMORY=32MB -sALLOW_MEMORY_GROWTH} # Use just enough memory as memory usage can grow
40+
${FFMPEG_ST:+ -sINITIAL_MEMORY=32MB -sALLOW_MEMORY_GROWTH -sMAXIMUM_MEMORY=4GB} # Use just enough memory as memory usage can grow
4141
-sEXPORT_NAME="$EXPORT_NAME" # required in browser env, so that user can access this module from window object
4242
-sEXPORTED_FUNCTIONS=$(node src/bind/ffmpeg/export.js) # exported functions
4343
-sEXPORTED_RUNTIME_METHODS=$(node src/bind/ffmpeg/export-runtime.js) # exported built-in functions

0 commit comments

Comments
 (0)