Mercurial > libavformat.hg
diff avio.h @ 2598:fc7f8ee4700b libavformat
Add functionality to set the direction of a ByteIOContext buffer.
Patch by Bj«Órn Axelsson bjorn axelsson intinor se
Original thread: [FFmpeg-devel] [PATCH] MMS protocol support patch 1
Date: 09/19/2007 05:51 PM
author | benoit |
---|---|
date | Thu, 11 Oct 2007 14:57:47 +0000 |
parents | 1f9d02d072a7 |
children | 792383dd085e |
line wrap: on
line diff
--- a/avio.h Wed Oct 10 22:59:36 2007 +0000 +++ b/avio.h Thu Oct 11 14:57:47 2007 +0000 @@ -203,6 +203,11 @@ /** @warning must be called before any I/O */ int url_setbufsize(ByteIOContext *s, int buf_size); +/** Reset the buffer for reading or writing. + * @note Will drop any data currently in the buffer without transmitting it. + * @param flags URL_RDONLY to set up the buffer for reading, or URL_WRONLY + * to set up the buffer for writing. */ +int url_resetbuf(ByteIOContext *s, int flags); /** @note when opened as read/write, the buffers are only used for writing */