diff options
author | Björn Axelsson <gecko@acc.umu.se> | 2007-10-11 14:57:47 +0000 |
---|---|---|
committer | Benoit Fouet <benoit.fouet@free.fr> | 2007-10-11 14:57:47 +0000 |
commit | 770d9dafa1b329a2ee2366ce5357068d6445630d (patch) | |
tree | 2c7bc78a4771d118f19a36694ddd91e933e07cf4 /libavformat/avio.h | |
parent | 3ea7841120c5b4871a0d571bbab04818d72dd274 (diff) | |
download | ffmpeg-streaming-770d9dafa1b329a2ee2366ce5357068d6445630d.zip ffmpeg-streaming-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.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h index c8c9a04..6606226 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 */ |