summaryrefslogtreecommitdiff
path: root/libavformat/au.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/au.c')
-rw-r--r--libavformat/au.c19
1 files changed, 6 insertions, 13 deletions
diff --git a/libavformat/au.c b/libavformat/au.c
index f4762607e7..5f15749d9c 100644
--- a/libavformat/au.c
+++ b/libavformat/au.c
@@ -178,7 +178,8 @@ static int au_read_close(AVFormatContext *s)
return 0;
}
-static AVInputFormat au_demuxer = {
+#ifdef CONFIG_AU_DEMUXER
+AVInputFormat au_demuxer = {
"au",
"SUN AU Format",
0,
@@ -188,9 +189,10 @@ static AVInputFormat au_demuxer = {
au_read_close,
pcm_read_seek,
};
+#endif
-#ifdef CONFIG_MUXERS
-static AVOutputFormat au_muxer = {
+#ifdef CONFIG_AU_MUXER
+AVOutputFormat au_muxer = {
"au",
"SUN AU Format",
"audio/basic",
@@ -202,13 +204,4 @@ static AVOutputFormat au_muxer = {
au_write_packet,
au_write_trailer,
};
-#endif //CONFIG_MUXERS
-
-int au_init(void)
-{
- av_register_input_format(&au_demuxer);
-#ifdef CONFIG_MUXERS
- av_register_output_format(&au_muxer);
-#endif //CONFIG_MUXERS
- return 0;
-}
+#endif //CONFIG_AU_MUXER