summaryrefslogtreecommitdiff
path: root/libavformat/avio.h
diff options
context:
space:
mode:
authorBenoit Fouet <benoit.fouet@free.fr>2009-10-20 06:40:01 +0000
committerBenoit Fouet <benoit.fouet@free.fr>2009-10-20 06:40:01 +0000
commit08580cb05a7cd04e99f1ca4867c4d7daeb3c5e41 (patch)
tree4f21c68b366b198d2847d593d7260210946b25d4 /libavformat/avio.h
parent0cd0a2248844b329c8e066f7609359ba56a9e1c6 (diff)
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 Originally committed as revision 20330 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avio.h')
-rw-r--r--libavformat/avio.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h
index d44e300497..5aa24ca0a7 100644
--- a/libavformat/avio.h
+++ b/libavformat/avio.h
@@ -333,11 +333,13 @@ int url_fdopen(ByteIOContext **s, URLContext *h);
/** @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 */