1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

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: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
Can Wu 2011-05-14 17:34:28 +08:00 committed by Anton Khirnov
parent 9e2dabed4a
commit d49051e074

View File

@ -373,6 +373,7 @@ void avio_set_interrupt_cb(int (*interrupt_cb)(void));
* freed with av_free(). * freed with av_free().
* *
* @param buffer Memory block for input/output operations via AVIOContext. * @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. * @param buffer_size The buffer size is very important for performance.
* For protocols with fixed blocksize it should be set to this blocksize. * For protocols with fixed blocksize it should be set to this blocksize.
* For others a typical size is a cache page, e.g. 4kb. * For others a typical size is a cache page, e.g. 4kb.