Mercurial > libavformat.hg
diff nut.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/nut.c Mon Jul 10 12:10:10 2006 +0000 +++ b/nut.c Mon Jul 10 21:14:37 2006 +0000 @@ -1419,7 +1419,8 @@ return 0; } -static AVInputFormat nut_demuxer = { +#ifdef CONFIG_NUT_DEMUXER +AVInputFormat nut_demuxer = { "nut", "nut format", sizeof(NUTContext), @@ -1431,9 +1432,9 @@ nut_read_timestamp, .extensions = "nut", }; - -#ifdef CONFIG_MUXERS -static AVOutputFormat nut_muxer = { +#endif +#ifdef CONFIG_NUT_MUXER +AVOutputFormat nut_muxer = { "nut", "nut format", "video/x-nut", @@ -1452,13 +1453,4 @@ nut_write_trailer, .flags = AVFMT_GLOBALHEADER, }; -#endif //CONFIG_MUXERS - -int nut_init(void) -{ - av_register_input_format(&nut_demuxer); -#ifdef CONFIG_MUXERS - av_register_output_format(&nut_muxer); -#endif //CONFIG_MUXERS - return 0; -} +#endif
