[FFmpeg-cvslog] lavc: Document AVFrame av_opt_ptr() relation.
Michael Niedermayer
git at videolan.org
Mon Dec 5 13:31:50 CET 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Dec 5 13:22:20 2011 +0100| [b9d2b45165021cd0ccbd892997661bfd5e90946f] | committer: Michael Niedermayer
lavc: Document AVFrame av_opt_ptr() relation.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b9d2b45165021cd0ccbd892997661bfd5e90946f
---
libavcodec/avcodec.h | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index f6e4b07..ed7a30e 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -944,7 +944,10 @@ typedef struct AVPacket {
/**
* Audio Video Frame.
* New fields can be added to the end of AVFRAME with minor version
- * bumps. Removal, reordering and changes to existing fields require
+ * bumps. Similarly fields that are marked as to be only accessed by
+ * av_opt_ptr() can be reordered. This allows 2 forks to add fields
+ * without breaking compatibility with each other.
+ * Removal, reordering and changes in the remaining cases require
* a major version bump.
* sizeof(AVFrame) must not be used outside libav*.
*/
More information about the ffmpeg-cvslog
mailing list