aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/avio.h
diff options
context:
space:
mode:
authorYu Xiaolei <dreifachstein@gmail.com>2014-11-25 16:35:29 +0800
committerMichael Niedermayer <michaelni@gmx.at>2014-11-25 18:19:00 +0100
commitbc3d02fa88c4d1a45952da8d058f5667913627b9 (patch)
treecbbce350b4ddbbc955f42aebf47acb74f2e62d4d /libavformat/avio.h
parent2f1de5ca139f185b7103caa6e5843b4fa7a78d57 (diff)
downloadandroid_external_ffmpeg-bc3d02fa88c4d1a45952da8d058f5667913627b9.tar.gz
android_external_ffmpeg-bc3d02fa88c4d1a45952da8d058f5667913627b9.tar.bz2
android_external_ffmpeg-bc3d02fa88c4d1a45952da8d058f5667913627b9.zip
lavf/avio: clarify the buffer parameter of avio_alloc_context
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/avio.h')
-rw-r--r--libavformat/avio.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h
index 86f754e2fb..b9b4017fb3 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.