Mercurial > libavformat.hg
diff westwood.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/westwood.c Mon Jul 10 12:10:10 2006 +0000 +++ b/westwood.c Mon Jul 10 21:14:37 2006 +0000 @@ -357,7 +357,8 @@ return 0; } -static AVInputFormat wsaud_demuxer = { +#ifdef CONFIG_WSAUD_DEMUXER +AVInputFormat wsaud_demuxer = { "wsaud", "Westwood Studios audio format", sizeof(WsAudDemuxContext), @@ -366,8 +367,9 @@ wsaud_read_packet, wsaud_read_close, }; - -static AVInputFormat wsvqa_demuxer = { +#endif +#ifdef CONFIG_WSVQA_DEMUXER +AVInputFormat wsvqa_demuxer = { "wsvqa", "Westwood Studios VQA format", sizeof(WsVqaDemuxContext), @@ -376,10 +378,4 @@ wsvqa_read_packet, wsvqa_read_close, }; - -int westwood_init(void) -{ - av_register_input_format(&wsaud_demuxer); - av_register_input_format(&wsvqa_demuxer); - return 0; -} +#endif