summaryrefslogtreecommitdiff
path: root/libavformat/mp3.c
diff options
context:
space:
mode:
authorMike Melanson <mike@multimedia.cx>2003-10-14 04:15:53 +0000
committerMike Melanson <mike@multimedia.cx>2003-10-14 04:15:53 +0000
commit764ef400159b4f640eda8b22e8c7a20d6649a391 (patch)
tree2e359b478a7089f81c973e8153ce653ecadb39a8 /libavformat/mp3.c
parenta003ee9a44eca32707eaa049171bc752ba3a9fde (diff)
disable encoders where appropriate (patch courtesy of BERO
<bero -at- geocities.co.jp>) Originally committed as revision 2375 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mp3.c')
-rw-r--r--libavformat/mp3.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/mp3.c b/libavformat/mp3.c
index cd515cf06f..35e1d86887 100644
--- a/libavformat/mp3.c
+++ b/libavformat/mp3.c
@@ -316,6 +316,7 @@ static int mp3_read_close(AVFormatContext *s)
return 0;
}
+#ifdef CONFIG_ENCODERS
/* simple formats */
static int mp3_write_header(struct AVFormatContext *s)
{
@@ -342,6 +343,7 @@ static int mp3_write_trailer(struct AVFormatContext *s)
}
return 0;
}
+#endif //CONFIG_ENCODERS
AVInputFormat mp3_iformat = {
"mp3",
@@ -354,6 +356,7 @@ AVInputFormat mp3_iformat = {
.extensions = "mp2,mp3", /* XXX: use probe */
};
+#ifdef CONFIG_ENCODERS
AVOutputFormat mp2_oformat = {
"mp2",
"MPEG audio layer 2",
@@ -385,13 +388,16 @@ AVOutputFormat mp3_oformat = {
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;
}