aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/audio.c
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2006-07-10 21:14:37 +0000
committerMåns Rullgård <mans@mansr.com>2006-07-10 21:14:37 +0000
commitff70e60176056daf646109b8e42654a3036fa02b (patch)
tree42e32d1e4bff334964cf93766ff2da6ee9a8f1d3 /libavformat/audio.c
parent4cac0d5589ab1a076e977425925015f2c8e591a8 (diff)
downloadffmpeg-ff70e60176056daf646109b8e42654a3036fa02b.tar.gz
allow individual selection of muxers and demuxers
Originally committed as revision 5707 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/audio.c')
-rw-r--r--libavformat/audio.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/libavformat/audio.c b/libavformat/audio.c
index a616e6136c..ad0ad7ce45 100644
--- a/libavformat/audio.c
+++ b/libavformat/audio.c
@@ -313,7 +313,8 @@ static int audio_read_close(AVFormatContext *s1)
return 0;
}
-static AVInputFormat audio_demuxer = {
+#ifdef CONFIG_AUDIO_DEMUXER
+AVInputFormat audio_demuxer = {
"audio_device",
"audio grab and output",
sizeof(AudioData),
@@ -323,8 +324,10 @@ static AVInputFormat audio_demuxer = {
audio_read_close,
.flags = AVFMT_NOFILE,
};
+#endif
-static AVOutputFormat audio_muxer = {
+#ifdef CONFIG_AUDIO_MUXER
+AVOutputFormat audio_muxer = {
"audio_device",
"audio grab and output",
"",
@@ -344,10 +347,4 @@ static AVOutputFormat audio_muxer = {
audio_write_trailer,
.flags = AVFMT_NOFILE,
};
-
-int audio_init(void)
-{
- av_register_input_format(&audio_demuxer);
- av_register_output_format(&audio_muxer);
- return 0;
-}
+#endif