Mercurial > libavformat.hg
diff avio.h @ 5320:db1e4c61789a libavformat
Make url_resetbuf() assert on wrong flags passed and make it static on next
version bump.
See thread: [FFmpeg-devel] & vs. &&
Date: Mon, 12 Oct 2009 14:21:06 +0200
author | benoit |
---|---|
date | Tue, 20 Oct 2009 06:40:01 +0000 |
parents | 84a7b7a2f252 |
children | 07ce73fed19f |
line wrap: on
line diff
--- a/avio.h Mon Oct 19 23:22:23 2009 +0000 +++ b/avio.h Tue Oct 20 06:40:01 2009 +0000 @@ -333,11 +333,13 @@ /** @warning must be called before any I/O */ int url_setbufsize(ByteIOContext *s, int buf_size); +#if LIBAVFORMAT_VERSION_MAJOR < 53 /** 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); +#endif /** @note when opened as read/write, the buffers are only used for writing */