diff img2.c @ 903:68bc3ca12e79 libavformat

Put muxer-specific code parts in #ifdef CONFIG_MUXERS. based on a patch by Luca Abeni < lucabe72 #@# email #.# it >
author diego
date Thu, 19 Jan 2006 23:36:50 +0000
parents edbe5c3717f9
children 2d57ce58f576
line wrap: on
line diff
--- a/img2.c	Thu Jan 19 22:30:37 2006 +0000
+++ b/img2.c	Thu Jan 19 23:36:50 2006 +0000
@@ -291,6 +291,7 @@
     return 0;
 }
 
+#ifdef CONFIG_MUXERS
 /******************************************************/
 /* image output */
 
@@ -360,6 +361,8 @@
     return 0;
 }
 
+#endif /* CONFIG_MUXERS */
+
 /* input */
 
 static AVInputFormat image2_iformat = {
@@ -387,6 +390,7 @@
 };
 
 
+#ifdef CONFIG_MUXERS
 /* output */
 
 static AVOutputFormat image2_oformat = {
@@ -415,14 +419,17 @@
     img_write_packet,
     img_write_trailer,
 };
+#endif /* CONFIG_MUXERS */
 
 int img2_init(void)
 {
     av_register_input_format(&image2_iformat);
-    av_register_output_format(&image2_oformat);
+    av_register_input_format(&image2pipe_iformat);
 
-    av_register_input_format(&image2pipe_iformat);
+#ifdef CONFIG_MUXERS
+    av_register_output_format(&image2_oformat);
     av_register_output_format(&image2pipe_oformat);
+#endif
 
     return 0;
 }