aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/amr.c
diff options
context:
space:
mode:
authorGianluigi Tiesi <mplayer@netfarm.it>2006-01-22 13:50:59 +0000
committerDiego Biurrun <diego@biurrun.de>2006-01-22 13:50:59 +0000
commit0e6c947df3a834484c04c3e9a646004ab7ccda65 (patch)
treeb2614110ee05c38112db6ef5951eebf727098fc5 /libavformat/amr.c
parent04f46ced8c6e309b561ba315ef7d3a5421bd26fa (diff)
downloadffmpeg-0e6c947df3a834484c04c3e9a646004ab7ccda65.tar.gz
Place proper #ifdef around muxer-specific code.
patch by Gianluigi Tiesi < mplayer at@at netfarm dot.dot it > Originally committed as revision 4880 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/amr.c')
-rw-r--r--libavformat/amr.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/amr.c b/libavformat/amr.c
index e149dcb9c2..22cd613739 100644
--- a/libavformat/amr.c
+++ b/libavformat/amr.c
@@ -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;
}