Mercurial > libavformat.hg
diff asf.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 | 3d92f793fd67 |
children | 85d558a18134 |
line wrap: on
line diff
--- a/asf.c Mon Oct 13 10:59:57 2003 +0000 +++ b/asf.c Tue Oct 14 04:15:53 2003 +0000 @@ -182,6 +182,7 @@ 0, 0, 0, { 0, 0, 0, 0, 0, 0, 0, 0 }, }; +#ifdef CONFIG_ENCODERS static void put_guid(ByteIOContext *s, const GUID *g) { int i; @@ -661,6 +662,7 @@ put_flush_packet(&s->pb); return 0; } +#endif //CONFIG_ENCODERS /**********************************/ /* decoding */ @@ -1245,6 +1247,7 @@ asf_read_seek, }; +#ifdef CONFIG_ENCODERS static AVOutputFormat asf_oformat = { "asf", "asf format", @@ -1278,11 +1281,14 @@ asf_write_packet, asf_write_trailer, }; +#endif //CONFIG_ENCODERS int asf_init(void) { av_register_input_format(&asf_iformat); +#ifdef CONFIG_ENCODERS av_register_output_format(&asf_oformat); av_register_output_format(&asf_stream_oformat); +#endif //CONFIG_ENCODERS return 0; }