[FFmpeg-devel] [PATCH] AVFrame ABI compatibility improvments

Michael Niedermayer michaelni at gmx.at
Sat Dec 3 21:38:55 CET 2011

This patch series makes it possible to access AVFrame fields from
applications independant of their name & position.
Normally we would just do this by using AVOptions but AVFrame does
not have a AVClass at its begin in the fork and my patch to add one
was ignored.
If just we add a AVClass all fields would shift their position, which
would defeat the idea of improving ABI compatibility.
Which brings us to this patchset which should make it possible for us
to keep adding fields and merging libavs additions without breaking
ABI. That is as long as applications use av_opt_ptr() to access the
fields. Which arguable only makes sense with a shared lib of libavcodec.
With static lib direct access is all fine ...

A possible improvment would be to provide a more complete set of read
write functions instead of just a get the pointer. This is a
patch welcome and can easily be done later if someone wants.
Ill apply this patchset within a day or 2 unless there are objections

We will also need an update to the docs which ill do later if noone else
does it ...

More information about the ffmpeg-devel mailing list