]> git.sesse.net Git - ffmpeg/commitdiff
frame: clarify buf documentation
authorAnton Khirnov <anton@khirnov.net>
Fri, 14 Nov 2014 10:41:15 +0000 (11:41 +0100)
committerAnton Khirnov <anton@khirnov.net>
Sun, 8 Feb 2015 20:28:31 +0000 (21:28 +0100)
Mention explicitly that the array must be filled contiguously.

libavutil/frame.h

index 28170e76486ff2531060439131fc8011db118087..addcb25a509bdcf8f3e418aa45603eb5aa5c963a 100644 (file)
@@ -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