[FFmpeg-devel] [RFC] Support dynamic loading of third-party libs
lukasz.m.luki2 at gmail.com
Tue Jan 13 17:19:58 CET 2015
On 13 January 2015 at 14:54, wm4 <nfxjfg at googlemail.com> wrote:
> On Mon, 12 Jan 2015 18:59:33 +0100
> Marc Giger <gigerstyle at gmx.ch> wrote:
> > Hi,
> > Attached is a preliminary patch that enables runtime loading of external
> > libraries via dlopen and friends. Dynamic loading is a build time option
> > (--enable-dynamic-loading) and if it is not activated the libs are
> > linked as usual (still no dependency to dlopen required).
> > The patch is intended as a basis for a discussion and therefore the
> > following applies:
> > - only libmp3lame and libva will by dynamically loaded atm
> > - only tested on linux atm
> > - deregistering not implemented (dlclose)
> > - versioning (which version of a lib should be loaded?)
> > - library usage counter missing
> > - ...?
> > What do you think?
> What's the point?
Loading library "on demand" saves some time on application start and
possibly saves memory.
I is not relevant, on modern desktops, but on mobile devices it can make a
I haven't looked at patch, but idea as a whole is OK IMHO
More information about the ffmpeg-devel