[FFmpeg-devel] [RFC] Support dynamic loading of third-party libs

Marc Giger gigerstyle at gmx.ch
Mon Jan 12 18:59:33 CET 2015


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?

Thanks,

Marc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg-dynamic-loading.patch
Type: text/x-patch
Size: 25501 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150112/d1f37418/attachment.bin>


More information about the ffmpeg-devel mailing list