Mercurial > libavformat.hg
diff mpeg.c @ 277:a313e1080322 libavformat
disable encoders where appropriate (patch courtesy of BERO
<bero -at- geocities.co.jp>)
author | melanson |
---|---|
date | Tue, 14 Oct 2003 04:15:53 +0000 |
parents | 3dd3646e0164 |
children | b19f70a6d60f |
line wrap: on
line diff
--- a/mpeg.c Mon Oct 13 10:59:57 2003 +0000 +++ b/mpeg.c Tue Oct 14 04:15:53 2003 +0000 @@ -61,6 +61,7 @@ #define AUDIO_ID 0xc0 #define VIDEO_ID 0xe0 +#ifdef CONFIG_ENCODERS extern AVOutputFormat mpeg1system_mux; extern AVOutputFormat mpeg1vcd_mux; extern AVOutputFormat mpeg2vob_mux; @@ -396,6 +397,7 @@ return 0; } +#endif //CONFIG_ENCODERS /*********************************************/ /* demux code */ @@ -650,6 +652,7 @@ return 0; } +#ifdef CONFIG_ENCODERS static AVOutputFormat mpeg1system_mux = { "mpeg", "MPEG1 System format", @@ -688,6 +691,7 @@ mpeg_mux_write_packet, mpeg_mux_end, }; +#endif //CONFIG_ENCODERS AVInputFormat mpegps_demux = { "mpeg", @@ -702,9 +706,11 @@ int mpegps_init(void) { +#ifdef CONFIG_ENCODERS av_register_output_format(&mpeg1system_mux); av_register_output_format(&mpeg1vcd_mux); av_register_output_format(&mpeg2vob_mux); +#endif //CONFIG_ENCODERS av_register_input_format(&mpegps_demux); return 0; }