From ff70e60176056daf646109b8e42654a3036fa02b Mon Sep 17 00:00:00 2001 From: Måns Rullgård Date: Mon, 10 Jul 2006 21:14:37 +0000 Subject: allow individual selection of muxers and demuxers Originally committed as revision 5707 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/rtsp.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'libavformat/rtsp.c') diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 45acadb293..31a18f27fe 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -1345,8 +1345,8 @@ static int sdp_read_close(AVFormatContext *s) return 0; } - -static AVInputFormat sdp_demuxer = { +#ifdef CONFIG_SDP_DEMUXER +AVInputFormat sdp_demuxer = { "sdp", "SDP", sizeof(RTSPState), @@ -1355,7 +1355,7 @@ static AVInputFormat sdp_demuxer = { sdp_read_packet, sdp_read_close, }; - +#endif /* dummy redirector format (used directly in av_open_input_file now) */ static int redir_probe(AVProbeData *pd) @@ -1419,11 +1419,3 @@ AVInputFormat redir_demuxer = { NULL, NULL, }; - -int rtsp_init(void) -{ - av_register_input_format(&rtsp_demuxer); - av_register_input_format(&redir_demuxer); - av_register_input_format(&sdp_demuxer); - return 0; -} -- cgit v1.2.3