changeset 906:dd0d3138fdbe libavformat

Place proper #ifdef around muxer-specific code. patch by Gianluigi Tiesi < mplayer at@at netfarm dot.dot it >
author diego
date Sun, 22 Jan 2006 13:50:59 +0000
parents dbc0145bbf11
children abed44e1f1e0
files amr.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/amr.c	Sat Jan 21 18:36:32 2006 +0000
+++ b/amr.c	Sun Jan 22 13:50:59 2006 +0000
@@ -28,6 +28,7 @@
 static const unsigned char AMR_header [] = "#!AMR\n";
 static const unsigned char AMRWB_header [] = "#!AMR-WB\n";
 
+#ifdef CONFIG_MUXERS
 static int amr_write_header(AVFormatContext *s)
 {
     ByteIOContext *pb = &s->pb;
@@ -62,6 +63,7 @@
 {
     return 0;
 }
+#endif /* CONFIG_MUXERS */
 
 static int amr_probe(AVProbeData *p)
 {
@@ -223,6 +225,7 @@
     amr_read_close,
 };
 
+#ifdef CONFIG_MUXERS
 static AVOutputFormat amr_oformat = {
     "amr",
     "3gpp amr file format",
@@ -235,10 +238,13 @@
     amr_write_packet,
     amr_write_trailer,
 };
+#endif
 
 int amr_init(void)
 {
     av_register_input_format(&amr_iformat);
+#ifdef CONFIG_MUXERS
     av_register_output_format(&amr_oformat);
+#endif
     return 0;
 }