summaryrefslogtreecommitdiff
path: root/libavformat/au.c
diff options
context:
space:
mode:
authorMike Melanson <mike@multimedia.cx>2003-10-14 04:15:53 +0000
committerMike Melanson <mike@multimedia.cx>2003-10-14 04:15:53 +0000
commit764ef400159b4f640eda8b22e8c7a20d6649a391 (patch)
tree2e359b478a7089f81c973e8153ce653ecadb39a8 /libavformat/au.c
parenta003ee9a44eca32707eaa049171bc752ba3a9fde (diff)
disable encoders where appropriate (patch courtesy of BERO
<bero -at- geocities.co.jp>) Originally committed as revision 2375 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/au.c')
-rw-r--r--libavformat/au.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/au.c b/libavformat/au.c
index f0aef8abfb..f2f0dbd144 100644
--- a/libavformat/au.c
+++ b/libavformat/au.c
@@ -39,6 +39,7 @@ static const CodecTag codec_au_tags[] = {
{ 0, 0 },
};
+#ifdef CONFIG_ENCODERS
/* AUDIO_FILE header */
static int put_au_header(ByteIOContext *pb, AVCodecContext *enc)
{
@@ -97,6 +98,7 @@ static int au_write_trailer(AVFormatContext *s)
return 0;
}
+#endif //CONFIG_ENCODERS
static int au_probe(AVProbeData *p)
{
@@ -187,6 +189,7 @@ static AVInputFormat au_iformat = {
au_read_close,
};
+#ifdef CONFIG_ENCODERS
static AVOutputFormat au_oformat = {
"au",
"SUN AU Format",
@@ -199,10 +202,13 @@ static AVOutputFormat au_oformat = {
au_write_packet,
au_write_trailer,
};
+#endif //CONFIG_ENCODERS
int au_init(void)
{
av_register_input_format(&au_iformat);
+#ifdef CONFIG_ENCODERS
av_register_output_format(&au_oformat);
+#endif //CONFIG_ENCODERS
return 0;
}