return 0;
}
+#ifdef CONFIG_ENCODERS
/* simple formats */
static int mp3_write_header(struct AVFormatContext *s)
{
}
return 0;
}
+#endif //CONFIG_ENCODERS
AVInputFormat mp3_iformat = {
"mp3",
.extensions = "mp2,mp3", /* XXX: use probe */
};
+#ifdef CONFIG_ENCODERS
AVOutputFormat mp2_oformat = {
"mp2",
"MPEG audio layer 2",
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;
}