Mercurial > libavformat.hg
diff ogg.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 | 1e2f55eced38 |
children | 7a3ed84008ec |
line wrap: on
line diff
--- a/ogg.c Mon Oct 13 10:59:57 2003 +0000 +++ b/ogg.c Tue Oct 14 04:15:53 2003 +0000 @@ -30,6 +30,7 @@ } OggContext ; +#ifdef CONFIG_ENCODERS static int ogg_write_header(AVFormatContext *avfcontext) { OggContext *context = avfcontext->priv_data; @@ -162,6 +163,7 @@ ogg_write_packet, ogg_write_trailer, } ; +#endif //CONFIG_ENCODERS static int next_packet(AVFormatContext *avfcontext, ogg_packet *op) { @@ -257,7 +259,9 @@ int ogg_init(void) { +#ifdef CONFIG_ENCODERS av_register_output_format(&ogg_oformat) ; +#endif av_register_input_format(&ogg_iformat); return 0 ; }