[FFmpeg-cvslog] frame: clarify buf documentation

Anton Khirnov git at videolan.org
Wed Feb 11 01:41:38 CET 2015


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Fri Nov 14 11:41:15 2014 +0100| [0232ba62a28527579e34d44700b48017cc727e5f] | committer: Anton Khirnov

frame: clarify buf documentation

Mention explicitly that the array must be filled contiguously.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0232ba62a28527579e34d44700b48017cc727e5f
---

 libavutil/frame.h |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libavutil/frame.h b/libavutil/frame.h
index 28170e7..addcb25 100644
--- a/libavutil/frame.h
+++ b/libavutil/frame.h
@@ -388,7 +388,9 @@ typedef struct AVFrame {
 
     /**
      * AVBuffer references backing the data for this frame. If all elements of
-     * this array are NULL, then this frame is not reference counted.
+     * this array are NULL, then this frame is not reference counted. This array
+     * must be filled contiguously -- if buf[i] is non-NULL then buf[j] must
+     * also be non-NULL for all j < i.
      *
      * There may be at most one AVBuffer per data plane, so for video this array
      * always contains all the references. For planar audio with more than



More information about the ffmpeg-cvslog mailing list