[FFmpeg-devel] [PATCH] metadata compatibility layer (part2)

Aurelien Jacobs aurel
Wed Jan 7 01:21:07 CET 2009


Hi,

Hi attached patch is the second (and final) part of the metadata
compatibility layer. It adds compatibility in the other way around.
When a demuxer read metadata and stores it with av_metadata_set(),
it automatically fill the old API metadata fields, so that a
software using the old API is still able to get metadata from
demuxers using the new API.

It is slightly ugly, especially the AVFormatContext pointer stored
in the AVMetadata struct, but that's the cleanest way I found.
As the struct is not exposed in public API and all of this is
just a temporary transition code, I think it is acceptable.

Aurel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: md_compat2.diff
Type: text/x-patch
Size: 6065 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090107/23ad8ab1/attachment.bin>



More information about the ffmpeg-devel mailing list