Skip to content

Commit 2f8964b

Browse files
author
izogfif
committed
FFprobe's input_file_name is re-initialized on every ffprobe run. Emscripten's ENVIRONMENT variable was set to "WORKER". Node.js-related code should no longer be present in ffmpeg-core.js.
1 parent 8d63b3a commit 2f8964b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

build/ffmpeg-wasm.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ CONF_FLAGS=(
3030
-lswscale
3131
-Wno-deprecated-declarations
3232
$LDFLAGS
33+
-sENVIRONMENT=worker
3334
-sWASM_BIGINT # enable big int support
3435
-sUSE_SDL=2 # use emscripten SDL2 lib port
3536
-sMODULARIZE # modularized to use as a library

src/fftools/ffprobe.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4047,6 +4047,7 @@ int ffprobe(int argc, char **argv)
40474047
#endif
40484048

40494049
show_banner(argc, argv, options);
4050+
input_filename = NULL;
40504051
parse_options(NULL, argc, argv, options, opt_input_file);
40514052

40524053
if (do_show_log)

0 commit comments

Comments
 (0)