diff aviobuf.c @ 905:dbc0145bbf11 libavformat

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 >
author diego
date Sat, 21 Jan 2006 18:36:32 +0000
parents edbe5c3717f9
children a887adfe9dc5
line wrap: on
line diff
--- a/aviobuf.c	Fri Jan 20 23:48:16 2006 +0000
+++ b/aviobuf.c	Sat Jan 21 18:36:32 2006 +0000
@@ -53,8 +53,6 @@
     return 0;
 }
 
-
-#ifdef CONFIG_MUXERS
 static void flush_buffer(ByteIOContext *s)
 {
     if (s->buf_ptr > s->buffer) {
@@ -104,7 +102,6 @@
     flush_buffer(s);
     s->must_flush = 0;
 }
-#endif //CONFIG_MUXERS
 
 offset_t url_fseek(ByteIOContext *s, offset_t offset, int whence)
 {
@@ -193,7 +190,7 @@
     return s->error;
 }
 
-#ifdef CONFIG_MUXERS
+#if defined(CONFIG_MUXERS) || defined(CONFIG_PROTOCOLS)
 void put_le32(ByteIOContext *s, unsigned int val)
 {
     put_byte(s, val);
@@ -254,7 +251,7 @@
         put_byte(s, *tag++);
     }
 }
-#endif //CONFIG_MUXERS
+#endif //CONFIG_MUXERS || CONFIG_PROTOCOLS
 
 /* Input stream */