diff avio.h @ 6209:71862ed5b874 libavformat

Pad the buffer in url_close_dyn_buf, for buffers opened with url_open_dyn_buf Patch by Josh Allmann, joshua dot allmann at gmail
author mstorsjo
date Thu, 01 Jul 2010 20:15:49 +0000
parents fa244b4fe683
children 6eead40d46a7
line wrap: on
line diff
--- a/avio.h	Thu Jul 01 20:12:58 2010 +0000
+++ b/avio.h	Thu Jul 01 20:15:49 2010 +0000
@@ -530,7 +530,10 @@
 
 /**
  * Return the written size and a pointer to the buffer. The buffer
- *  must be freed with av_free().
+ * must be freed with av_free(). If the buffer is opened with
+ * url_open_dyn_buf, then padding of FF_INPUT_BUFFER_PADDING_SIZE is
+ * added; if opened with url_open_dyn_packet_buf, no padding is added.
+ *
  * @param s IO context
  * @param pbuffer pointer to a byte buffer
  * @return the length of the byte buffer