提交 d49051e0 编写于 作者: C Can Wu 提交者: Anton Khirnov

avio: document buffer must created with av_malloc() and friends

Else a later buffer resize in ffio_set_buf_size() will ABORT.
Signed-off-by: NAnton Khirnov <anton@khirnov.net>
上级 9e2dabed
......@@ -373,6 +373,7 @@ void avio_set_interrupt_cb(int (*interrupt_cb)(void));
* freed with av_free().
*
* @param buffer Memory block for input/output operations via AVIOContext.
* The buffer must be allocated with av_malloc() and friends.
* @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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册