[FFmpeg-devel] [PATCH] metadata compatibility layer (part1)
Michael Niedermayer
michaelni
Mon Jan 5 05:00:37 CET 2009
On Mon, Jan 05, 2009 at 01:06:31AM +0100, Aurelien Jacobs wrote:
> Hi,
>
> Attached patch add a metadata compatibility layer, so that when a user
> application set metadata using old API and try to mux it, the muxer
> (using the new API) will still pick the metadata.
>
[...]
> Index: libavformat/utils.c
> ===================================================================
> --- libavformat/utils.c (revision 16430)
> +++ libavformat/utils.c (working copy)
> @@ -2501,6 +2501,10 @@
> return AVERROR(ENOMEM);
> }
>
> +#if LIBAVFORMAT_VERSION_MAJOR < 53
> + ff_metadata_sync_compat(s);
> +#endif
> +
> if(s->oformat->write_header){
> ret = s->oformat->write_header(s);
> if (ret < 0)
any reason why the compat code is not just written directly in here ?
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Everything should be made as simple as possible, but not simpler.
-- Albert Einstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090105/e589aa1c/attachment.pgp>
More information about the ffmpeg-devel
mailing list