Mercurial > libavformat.hg
diff movenc.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/movenc.c Mon Jul 10 12:10:10 2006 +0000 +++ b/movenc.c Mon Jul 10 21:14:37 2006 +0000 @@ -1588,7 +1588,8 @@ return res; } -static AVOutputFormat mov_muxer = { +#ifdef CONFIG_MOV_MUXER +AVOutputFormat mov_muxer = { "mov", "mov format", NULL, @@ -1601,8 +1602,9 @@ mov_write_trailer, .flags = AVFMT_GLOBALHEADER, }; - -static AVOutputFormat _3gp_muxer = { +#endif +#ifdef CONFIG_TGP_MUXER +AVOutputFormat tgp_muxer = { "3gp", "3gp format", NULL, @@ -1615,8 +1617,9 @@ mov_write_trailer, .flags = AVFMT_GLOBALHEADER, }; - -static AVOutputFormat mp4_muxer = { +#endif +#ifdef CONFIG_MP4_MUXER +AVOutputFormat mp4_muxer = { "mp4", "mp4 format", "application/mp4", @@ -1629,8 +1632,9 @@ mov_write_trailer, .flags = AVFMT_GLOBALHEADER, }; - -static AVOutputFormat psp_muxer = { +#endif +#ifdef CONFIG_PSP_MUXER +AVOutputFormat psp_muxer = { "psp", "psp mp4 format", NULL, @@ -1643,8 +1647,9 @@ mov_write_trailer, .flags = AVFMT_GLOBALHEADER, }; - -static AVOutputFormat _3g2_muxer = { +#endif +#ifdef CONFIG_TG2_MUXER +AVOutputFormat tg2_muxer = { "3g2", "3gp2 format", NULL, @@ -1657,13 +1662,4 @@ mov_write_trailer, .flags = AVFMT_GLOBALHEADER, }; - -int movenc_init(void) -{ - av_register_output_format(&mov_muxer); - av_register_output_format(&_3gp_muxer); - av_register_output_format(&mp4_muxer); - av_register_output_format(&psp_muxer); - av_register_output_format(&_3g2_muxer); - return 0; -} +#endif