diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-11-25 16:29:54 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2021-12-04 14:28:23 +0100 |
commit | 3b8efec3c58ab1e30d72427d3025a0641b442f71 (patch) | |
tree | f4a8f84b896d0010b1c6d1efee1c816daed2d04f /libavutil | |
parent | 2755e6f32a51205117239b3b4a8e5fd6ebbf9db0 (diff) | |
download | ffmpeg-3b8efec3c58ab1e30d72427d3025a0641b442f71.tar.gz |
lavu/frame: drop mentions of non-refcounted frames
All frames we deal with should always be refcounted now.
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/frame.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/libavutil/frame.h b/libavutil/frame.h index 882b5afbde..933944526d 100644 --- a/libavutil/frame.h +++ b/libavutil/frame.h @@ -314,6 +314,9 @@ typedef struct AVFrame { * This might be different from the first allocated byte. For video, * it could even point to the end of the image data. * + * All pointers in data and extended_data must point into one of the + * AVBufferRef in buf or extended_buf. + * * Some decoders access areas outside 0,0 - width,height, please * see avcodec_align_dimensions2(). Some filters and swscale can read * up to 16 bytes beyond the planes, if these filters are to be used, @@ -490,10 +493,10 @@ typedef struct AVFrame { uint64_t channel_layout; /** - * 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 - * must be filled contiguously -- if buf[i] is non-NULL then buf[j] must - * also be non-NULL for all j < i. + * AVBuffer references backing the data for this frame. All the pointers in + * data and extended_data must point inside one of the buffers in buf or + * extended_buf. 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 |