changeset 2914:7a9a045dcdc3 libavformat

url_write is part of the public API so it may not be under ifdef. Also fixes a compile error if all muxers and protocols are disabled. Patch by Guillaume LECERF (foxcore gmail com)
author reimar
date Tue, 08 Jan 2008 22:07:59 +0000
parents f05588003063
children 75d64cb5ee6c
files avio.c
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/avio.c	Tue Jan 08 13:55:15 2008 +0000
+++ b/avio.c	Tue Jan 08 22:07:59 2008 +0000
@@ -110,7 +110,6 @@
     return ret;
 }
 
-#if defined(CONFIG_MUXERS) || defined(CONFIG_PROTOCOLS)
 int url_write(URLContext *h, unsigned char *buf, int size)
 {
     int ret;
@@ -122,7 +121,6 @@
     ret = h->prot->url_write(h, buf, size);
     return ret;
 }
-#endif //CONFIG_MUXERS || CONFIG_PROTOCOLS
 
 offset_t url_seek(URLContext *h, offset_t pos, int whence)
 {