Mercurial > libavformat.hg
diff mp3.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 | 5552d3761ec0 |
line wrap: on
line diff
--- a/mp3.c Mon Oct 13 10:59:57 2003 +0000 +++ b/mp3.c Tue Oct 14 04:15:53 2003 +0000 @@ -316,6 +316,7 @@ return 0; } +#ifdef CONFIG_ENCODERS /* simple formats */ static int mp3_write_header(struct AVFormatContext *s) { @@ -342,6 +343,7 @@ } return 0; } +#endif //CONFIG_ENCODERS AVInputFormat mp3_iformat = { "mp3", @@ -354,6 +356,7 @@ .extensions = "mp2,mp3", /* XXX: use probe */ }; +#ifdef CONFIG_ENCODERS AVOutputFormat mp2_oformat = { "mp2", "MPEG audio layer 2", @@ -385,13 +388,16 @@ mp3_write_trailer, }; #endif +#endif //CONFIG_ENCODERS int mp3_init(void) { av_register_input_format(&mp3_iformat); +#ifdef CONFIG_ENCODERS av_register_output_format(&mp2_oformat); #ifdef CONFIG_MP3LAME av_register_output_format(&mp3_oformat); #endif +#endif //CONFIG_ENCODERS return 0; }
