]> git.sesse.net Git - ffmpeg/commitdiff
buffer: fix av_buffer_pool_init2() documentation
authorAnton Khirnov <anton@khirnov.net>
Wed, 3 Aug 2016 07:51:06 +0000 (09:51 +0200)
committerAnton Khirnov <anton@khirnov.net>
Thu, 11 Aug 2016 08:29:23 +0000 (10:29 +0200)
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.

libavutil/buffer.h

index 46779cae9b56bf2e4f40a772d27066693689b600..58def6fbbb8a979c28d3604b5b5c7315abe51bf3 100644 (file)
@@ -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,