This is a compilation of the libraries associated with handling audio and video in ffmpeg—libavformat, libavcodec, libavfilter, libavutil, libswresample, and libswscale—for emscripten, and thus the web.
{"options": 2850176}
Uncaught (in promise) RuntimeError: memory access out of bounds
at dlfree (dlmalloc.c:4786:24)
at av_freep (mem.c:241:5)
at av_dict_free (dict.c:234:5)
at ret.<computed> (libav-4.5.6.0-default.dbg.simd.js:5120:35)
at Module._av_dict_free [as av_dict_free_sync] (libav-4.5.6.0-default.dbg.simd.js:6813:84)
at (index):10:13
Using the async versions of the av_dict_* functions results in the same errors.
Like av_dict_set, av_dict_free takes a pointer-pointer, and the _js version takes a pointer. If you're using av_dict_set_js, you should be using av_dict_free_js.
Researching https://github.com/Yahweasel/libav.js/issues/34, I came to a smallest example that produces the error:
This results in the following error:
Using the async versions of the
av_dict_*
functions results in the same errors.