]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Place proper #ifdef around muxer-specific code.
authordiego <diego@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sun, 22 Jan 2006 13:50:59 +0000 (13:50 +0000)
committerdiego <diego@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sun, 22 Jan 2006 13:50:59 +0000 (13:50 +0000)
patch by Gianluigi Tiesi < mplayer at@at netfarm dot.dot it >

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4880 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavformat/amr.c

index e149dcb9c2bb1c4706647840113c2090a3ddb859..22cd6137391c0fd6bccb7efb2ad066d3c33b74a6 100644 (file)
@@ -28,6 +28,7 @@ Only mono files are supported.
 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 @@ static int amr_write_trailer(AVFormatContext *s)
 {
     return 0;
 }
+#endif /* CONFIG_MUXERS */
 
 static int amr_probe(AVProbeData *p)
 {
@@ -223,6 +225,7 @@ static AVInputFormat amr_iformat = {
     amr_read_close,
 };
 
+#ifdef CONFIG_MUXERS
 static AVOutputFormat amr_oformat = {
     "amr",
     "3gpp amr file format",
@@ -235,10 +238,13 @@ static AVOutputFormat amr_oformat = {
     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;
 }