[FFmpeg-devel] [RFC] Split libavformat
Luca Abeni
lucabe72
Tue Nov 20 09:33:23 CET 2007
Hi Luca,
first of all, thanks for the feedback.
Luca Barbato wrote:
> Luca Abeni wrote:
> [avdevice and avnet]
>
> Some nits:
>
> - libavdevice makefile seems to use libavf version
Opss... Probably a c&p error; going to fix it
> - libavf should change the major version
I was not sure about it, so I did not change the version number
waiting for some feedback ;-)
> if the pkg-config isn't changed to depend on libavdevice and libavnet
Uhmmm... The dependencies are:
- libavformat only depends on libavcodec (and libavutil)
- libavdevice depends on libavformat
- libavnet depends on libavformat
I tried to express these dependencies (by changing the pkg-config files
generation in the configure script), but I probably got it wrong...
Which is the correct change to express the dependencies listed above?
> - Both avdevice_register_all avnet_register_all call av_register_all, why?
Because to use libavdevice or libavnet we need to initialize libavformat,
but sometimes a program might use only libavdevice without libavnet (or only
libavnet without libavdevice). So, it might happen that
- both avdevice_register_all() and avnet_register_all() are called, or
- only avdevice_register_all() is called, or
- only avnet_register_all() is called
Since av_register_all() is protected from multiple invocations, calling
it multiple times is not a problem. So, I ended up by calling it from
both avdevice_register_all() and avnet_register_all().
Thanks,
Luca
More information about the ffmpeg-devel
mailing list