summaryrefslogtreecommitdiff
path: root/libavformat/avio.c
diff options
context:
space:
mode:
authorGildas Bazin <gbazi@altern.org>2006-01-21 18:36:32 +0000
committerDiego Biurrun <diego@biurrun.de>2006-01-21 18:36:32 +0000
commit04f46ced8c6e309b561ba315ef7d3a5421bd26fa (patch)
treedc2131c4551d25a00a7d7fe62952a81ac8c47678 /libavformat/avio.c
parent62327e2852ffe1c3088feafa0dfbd4ddb6632064 (diff)
Add --disable-protocols option to configure to disable I/O protocol from
libavformat. Also fix build with --disable-muxers and --disable-ffserver. patch by Gildas Bazin < gbazin **@** altern **.** org > Originally committed as revision 4879 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avio.c')
-rw-r--r--libavformat/avio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/avio.c b/libavformat/avio.c
index 4f96b654a4..36032c0fb7 100644
--- a/libavformat/avio.c
+++ b/libavformat/avio.c
@@ -100,7 +100,7 @@ int url_read(URLContext *h, unsigned char *buf, int size)
return ret;
}
-#ifdef CONFIG_MUXERS
+#if defined(CONFIG_MUXERS) || defined(CONFIG_PROTOCOLS)
int url_write(URLContext *h, unsigned char *buf, int size)
{
int ret;
@@ -112,7 +112,7 @@ int url_write(URLContext *h, unsigned char *buf, int size)
ret = h->prot->url_write(h, buf, size);
return ret;
}
-#endif //CONFIG_MUXERS
+#endif //CONFIG_MUXERS || CONFIG_PROTOCOLS
offset_t url_seek(URLContext *h, offset_t pos, int whence)
{