]> git.sesse.net Git - ffmpeg/commitdiff
avio: document buffer must created with av_malloc() and friends
authorCan Wu <wu.canus@gmail.com>
Sat, 14 May 2011 09:34:28 +0000 (17:34 +0800)
committerAnton Khirnov <anton@khirnov.net>
Sat, 21 May 2011 11:42:50 +0000 (13:42 +0200)
Else a later buffer resize in ffio_set_buf_size() will ABORT.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavformat/avio.h

index b98137b83bc58bd6d18b8e62fbde4d1dfe147c33..e07e3c3c9278dd73f7b878f8c9348217ed3cb49a 100644 (file)
@@ -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.