Mercurial > libavformat.hg
diff wav.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 | 6a5e58d2114b |
line wrap: on
line diff
--- a/wav.c Mon Jul 10 12:10:10 2006 +0000 +++ b/wav.c Mon Jul 10 21:14:37 2006 +0000 @@ -404,8 +404,8 @@ return pcm_read_seek(s, stream_index, timestamp, flags); } - -static AVInputFormat wav_demuxer = { +#ifdef CONFIG_WAV_DEMUXER +AVInputFormat wav_demuxer = { "wav", "wav format", sizeof(WAVContext), @@ -415,9 +415,9 @@ wav_read_close, wav_read_seek, }; - -#ifdef CONFIG_MUXERS -static AVOutputFormat wav_muxer = { +#endif +#ifdef CONFIG_WAV_MUXER +AVOutputFormat wav_muxer = { "wav", "wav format", "audio/x-wav", @@ -429,13 +429,4 @@ wav_write_packet, wav_write_trailer, }; -#endif //CONFIG_MUXERS - -int ff_wav_init(void) -{ - av_register_input_format(&wav_demuxer); -#ifdef CONFIG_MUXERS - av_register_output_format(&wav_muxer); -#endif //CONFIG_MUXERS - return 0; -} +#endif