aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/avio.h
diff options
context:
space:
mode:
authorBjörn Axelsson <gecko@acc.umu.se>2007-10-11 14:57:47 +0000
committerBenoit Fouet <benoit.fouet@free.fr>2007-10-11 14:57:47 +0000
commit770d9dafa1b329a2ee2366ce5357068d6445630d (patch)
tree2c7bc78a4771d118f19a36694ddd91e933e07cf4 /libavformat/avio.h
parent3ea7841120c5b4871a0d571bbab04818d72dd274 (diff)
downloadffmpeg-770d9dafa1b329a2ee2366ce5357068d6445630d.tar.gz
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 Originally committed as revision 10709 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avio.h')
-rw-r--r--libavformat/avio.h5
1 files changed, 5 insertions, 0 deletions
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 */