diff options
author | Måns Rullgård <mans@mansr.com> | 2006-07-10 21:14:37 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2006-07-10 21:14:37 +0000 |
commit | ff70e60176056daf646109b8e42654a3036fa02b (patch) | |
tree | 42e32d1e4bff334964cf93766ff2da6ee9a8f1d3 /libavformat/rtsp.c | |
parent | 4cac0d5589ab1a076e977425925015f2c8e591a8 (diff) | |
download | ffmpeg-ff70e60176056daf646109b8e42654a3036fa02b.tar.gz |
allow individual selection of muxers and demuxers
Originally committed as revision 5707 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r-- | libavformat/rtsp.c | 14 |
1 files changed, 3 insertions, 11 deletions
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; -} |