diff options
author | Can Wu <wu.canus@gmail.com> | 2011-05-14 17:34:28 +0800 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-05-21 13:42:50 +0200 |
commit | d49051e0742c09345495ae0486c3601a15222ac4 (patch) | |
tree | 4095f4c0722d4cd7aaddefd98f3665caef9e2bcf | |
parent | 9e2dabed4a7bf21e3e0c0f4ddc895f8ed90fa839 (diff) | |
download | ffmpeg-d49051e0742c09345495ae0486c3601a15222ac4.tar.gz |
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>
-rw-r--r-- | libavformat/avio.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h index b98137b83b..e07e3c3c92 100644 --- a/libavformat/avio.h +++ b/libavformat/avio.h @@ -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. |