diff options
author | Anton Khirnov <anton@khirnov.net> | 2016-08-03 09:51:06 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-08-11 10:29:23 +0200 |
commit | ec021d48445a414325ad59a73f9cde3212b173e4 (patch) | |
tree | 22970a00392e1d06bb652f6a8e81a573f0bad40c /libavutil/buffer.h | |
parent | 0638b99cdba52554691fc668d9e477bc184c7a33 (diff) | |
download | ffmpeg-ec021d48445a414325ad59a73f9cde3212b173e4.tar.gz |
buffer: fix av_buffer_pool_init2() documentation
A non-existent av_buffer_pool_can_uninit() function is mentioned instead
of av_buffer_pool_uninit(). Also, this function is to be called by the
caller, not the pool itself.
Diffstat (limited to 'libavutil/buffer.h')
-rw-r--r-- | libavutil/buffer.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libavutil/buffer.h b/libavutil/buffer.h index 46779cae9b..58def6fbbb 100644 --- a/libavutil/buffer.h +++ b/libavutil/buffer.h @@ -249,9 +249,10 @@ AVBufferPool *av_buffer_pool_init(int size, AVBufferRef* (*alloc)(int size)); * @param alloc a function that will be used to allocate new buffers when the * pool is empty. * @param pool_free a function that will be called immediately before the pool - * is freed. I.e. after av_buffer_pool_can_uninit() is called - * by the pool and all the frames are returned to the pool and - * freed. It is intended to uninitialize the user opaque data. + * 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. * @return newly created buffer pool on success, NULL on error. */ AVBufferPool *av_buffer_pool_init2(int size, void *opaque, |