]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/blobdiff - libavformat/aviobuf.c
Add --disable-protocols option to configure to disable I/O protocol from
[frescor/ffmpeg.git] / libavformat / aviobuf.c
index b1bc45b73dcffc17bfa98e57816ccecbc321bdf7..2a2fa1d04de6ff00abc42fe6ec995c80de02bd82 100644 (file)
@@ -53,8 +53,6 @@ int init_put_byte(ByteIOContext *s,
     return 0;
 }
 
-
-#ifdef CONFIG_MUXERS
 static void flush_buffer(ByteIOContext *s)
 {
     if (s->buf_ptr > s->buffer) {
@@ -104,7 +102,6 @@ void put_flush_packet(ByteIOContext *s)
     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 @@ int url_ferror(ByteIOContext *s)
     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 @@ void put_tag(ByteIOContext *s, const char *tag)
         put_byte(s, *tag++);
     }
 }
-#endif //CONFIG_MUXERS
+#endif //CONFIG_MUXERS || CONFIG_PROTOCOLS
 
 /* Input stream */