[FFmpeg-cvslog] lavf/avio: clarify the buffer parameter of avio_alloc_context

Yu Xiaolei git at videolan.org
Tue Nov 25 18:27:41 CET 2014


ffmpeg | branch: master | Yu Xiaolei <dreifachstein at gmail.com> | Tue Nov 25 16:35:29 2014 +0800| [bc3d02fa88c4d1a45952da8d058f5667913627b9] | committer: Michael Niedermayer

lavf/avio: clarify the buffer parameter of avio_alloc_context

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bc3d02fa88c4d1a45952da8d058f5667913627b9
---

 libavformat/avio.h |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavformat/avio.h b/libavformat/avio.h
index 86f754e..b9b4017 100644
--- a/libavformat/avio.h
+++ b/libavformat/avio.h
@@ -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.



More information about the ffmpeg-cvslog mailing list