diff options
author | Josh Allmann <joshua.allmann@gmail.com> | 2010-07-01 20:15:49 +0000 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2010-07-01 20:15:49 +0000 |
commit | de1807bbc4ea29e9492484e1104d4da33cd6ba28 (patch) | |
tree | 8c6361d7b3f62430961979e2e6409973f51949a8 /libavformat/avio.h | |
parent | 4449df6baf245465715844ce96886600128b3a83 (diff) | |
download | ffmpeg-de1807bbc4ea29e9492484e1104d4da33cd6ba28.tar.gz |
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
Originally committed as revision 23942 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avio.h')
-rw-r--r-- | libavformat/avio.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h index dc8fdd6f7d..a95504838c 100644 --- a/libavformat/avio.h +++ b/libavformat/avio.h @@ -530,7 +530,10 @@ int url_open_dyn_packet_buf(ByteIOContext **s, int max_packet_size); /** * 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 |