summaryrefslogtreecommitdiff
path: root/libavutil/frame.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-07-16 17:48:11 +0200
committerAnton Khirnov <anton@khirnov.net>2022-08-02 10:44:37 +0200
commiteede1d2927db18b962741e6a09ec1401fdad6277 (patch)
tree895d6736a3fd518de00f4aacd13123584bb0c675 /libavutil/frame.h
parentd9cd192dddb459e85a243dd0349f32e9a4f7a9d8 (diff)
lavu/frame: allow calling av_frame_make_writable() on non-refcounted frames
This is an easy way to make a refcounted frame from a non-refcounted one.
Diffstat (limited to 'libavutil/frame.h')
-rw-r--r--libavutil/frame.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavutil/frame.h b/libavutil/frame.h
index 856959f979..6d9563bc5d 100644
--- a/libavutil/frame.h
+++ b/libavutil/frame.h
@@ -828,7 +828,8 @@ int av_frame_is_writable(AVFrame *frame);
* Ensure that the frame data is writable, avoiding data copy if possible.
*
* Do nothing if the frame is writable, allocate new buffers and copy the data
- * if it is not.
+ * if it is not. Non-refcounted frames behave as non-writable, i.e. a copy
+ * is always made.
*
* @return 0 on success, a negative AVERROR on error.
*