[FFmpeg-devel] [PATCH v2] libavformat/vapoursynth: Update to API version 4, load library at runtime
Stephen Hutchinson
qyot27 at gmail.com
Fri Jul 19 20:05:10 EEST 2024
On 7/18/24 10:53 AM, Stefan Oltmanns via ffmpeg-devel wrote:
> The AviSynth patch to remove it by Stephen Hutchinson does not introduce
> it somewhere else. It is now only called directly at the start in case a
> needed function cannot be loaded from the DLL.
> From what I read dlclose is only needed if there are any C++
> deconstructors or similar stuff that need to be called before exiting
> the program.
> dlclose usually won't unload the library anyway (the spec does not
> require dlclose to do that)
>
That was just an oversight. Interestingly, the only situation that
the lack of dlclose appeared to cause a problem with when testing was
when the AviSynth host was the standard MSVC build for IA32, under
which case the lack of dlclose caused a segfault on exit. The 64-bit
build was fine and so were amd64 and i686 GCC builds.
Odd, but regardless, fixed in the newer version of the patch.
More information about the ffmpeg-devel
mailing list