Mercurial > libavformat.hg
diff audio.c @ 1169:d18cc9a1fd02 libavformat
allow individual selection of muxers and demuxers
author | mru |
---|---|
date | Mon, 10 Jul 2006 21:14:37 +0000 |
parents | d89d7ef290da |
children | 0899bfe4105c |
line wrap: on
line diff
--- a/audio.c Mon Jul 10 12:10:10 2006 +0000 +++ b/audio.c Mon Jul 10 21:14:37 2006 +0000 @@ -313,7 +313,8 @@ 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 @@ 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 @@ 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