[FFmpeg-devel] [RFC] gcc garbage collection unused code

Reimar Döffinger Reimar.Doeffinger
Fri Jun 13 19:53:46 CEST 2008


On Fri, Jun 13, 2008 at 07:21:38PM +0200, matthieu castet wrote:
> M?ns Rullg?rd wrote:
> > matthieu castet <castet.matthieu at free.fr> writes:
> > 
> >> What should be the best way to unhide private symbol shared across
> >> libraries ? Working at header level or function level ?
> > 
> > Symbols are either exported or not.  There is no way to export symbols
> > only to certain other libraries.
> > 
> That's not the point.
> FFmpeg define public API with headers that are installed by make 
> install. But there also a private API that is shared between libraries 
> but that shouldn't used outside ffmpeg.
> In my opinion that's not really a clean design. Why put aes stuff in 
> libavutil, if it's not in public (installed) headers of libavutil, not 
> used in libavutil and used in libavformat ?

Because they are small functions, and might be useful to someone else,
but nobody was sure the API would not be changed very soon - if they
were public that would require a major version bump and can get quite
annoying.
Though IMO aes.h, des.h and rc4.h could be installed, if someone would
like it.

Greetings,
Reimar D?ffinger




More information about the ffmpeg-devel mailing list