Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2020-06-01 16:31:30 +0300
committerJames Almer <jamrial@gmail.com>2020-06-05 16:07:04 +0300
commitf2ad89beff2720b9659cee5d79667f6136f6b47a (patch)
tree15ebb7dbeea71045ad88f41145065e5996a38af6 /libavutil/buffer.h
parentec39c2276ac795d8221198d4e6e837beac016ff2 (diff)
avutil/buffer: avutil/buffer: add a mention that some arguments from av_buffer_pool_init2() may be NULL
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavutil/buffer.h')
-rw-r--r--libavutil/buffer.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavutil/buffer.h b/libavutil/buffer.h
index e0f94314f4..c0f3f6cc9a 100644
--- a/libavutil/buffer.h
+++ b/libavutil/buffer.h
@@ -254,12 +254,13 @@ AVBufferPool *av_buffer_pool_init(int size, AVBufferRef* (*alloc)(int size));
* @param size size of each buffer in this pool
* @param opaque arbitrary user data used by the allocator
* @param alloc a function that will be used to allocate new buffers when the
- * pool is empty.
+ * pool is empty. May be NULL, then the default allocator will be
+ * used (av_buffer_alloc()).
* @param pool_free a function that will be called immediately before the pool
* is freed. I.e. after av_buffer_pool_uninit() is called
* by the caller and all the frames are returned to the pool
* and freed. It is intended to uninitialize the user opaque
- * data.
+ * data. May be NULL.
* @return newly created buffer pool on success, NULL on error.
*/
AVBufferPool *av_buffer_pool_init2(int size, void *opaque,