OSDN Git Service

lavf/avio: clarify the buffer parameter of avio_alloc_context
authorYu Xiaolei <dreifachstein@gmail.com>
Tue, 25 Nov 2014 08:35:29 +0000 (16:35 +0800)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 25 Nov 2014 17:19:00 +0000 (18:19 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/avio.h

index 86f754e..b9b4017 100644 (file)
@@ -186,6 +186,9 @@ int avio_check(const char *url, int flags);
  *
  * @param buffer Memory block for input/output operations via AVIOContext.
  *        The buffer must be allocated with av_malloc() and friends.
+ *        It may be freed and replaced with a new buffer by libavformat.
+ *        AVIOContext.buffer holds the buffer currently in use,
+ *        which must be later freed with av_free().
  * @param buffer_size The buffer size is very important for performance.
  *        For protocols with fixed blocksize it should be set to this blocksize.
  *        For others a typical size is a cache page, e.g. 4kb.