From 770d9dafa1b329a2ee2366ce5357068d6445630d Mon Sep 17 00:00:00 2001 From: Björn Axelsson Date: Thu, 11 Oct 2007 14:57:47 +0000 Subject: 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Originally committed as revision 10709 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/avio.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libavformat/avio.h') diff --git a/libavformat/avio.h b/libavformat/avio.h index c8c9a04aea..6606226007 100644 --- a/libavformat/avio.h +++ b/libavformat/avio.h @@ -203,6 +203,11 @@ int url_fdopen(ByteIOContext *s, URLContext *h); /** @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 */ -- cgit v1.2.3