summaryrefslogtreecommitdiff
path: root/libavformat/amr.c
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2006-07-10 21:14:37 +0000
committerMåns Rullgård <mans@mansr.com>2006-07-10 21:14:37 +0000
commitff70e60176056daf646109b8e42654a3036fa02b (patch)
tree42e32d1e4bff334964cf93766ff2da6ee9a8f1d3 /libavformat/amr.c
parent4cac0d5589ab1a076e977425925015f2c8e591a8 (diff)
allow individual selection of muxers and demuxers
Originally committed as revision 5707 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/amr.c')
-rw-r--r--libavformat/amr.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/libavformat/amr.c b/libavformat/amr.c
index b2e79420ab..ee0ea47f1b 100644
--- a/libavformat/amr.c
+++ b/libavformat/amr.c
@@ -215,7 +215,8 @@ static int amr_read_close(AVFormatContext *s)
return 0;
}
-static AVInputFormat amr_demuxer = {
+#ifdef CONFIG_AMR_DEMUXER
+AVInputFormat amr_demuxer = {
"amr",
"3gpp amr file format",
0, /*priv_data_size*/
@@ -224,9 +225,10 @@ static AVInputFormat amr_demuxer = {
amr_read_packet,
amr_read_close,
};
+#endif
-#ifdef CONFIG_MUXERS
-static AVOutputFormat amr_muxer = {
+#ifdef CONFIG_AMR_MUXER
+AVOutputFormat amr_muxer = {
"amr",
"3gpp amr file format",
"audio/amr",
@@ -239,12 +241,3 @@ static AVOutputFormat amr_muxer = {
amr_write_trailer,
};
#endif
-
-int amr_init(void)
-{
- av_register_input_format(&amr_demuxer);
-#ifdef CONFIG_MUXERS
- av_register_output_format(&amr_muxer);
-#endif
- return 0;
-}