Mercurial > libavformat.hg
diff rtsp.c @ 1169:d18cc9a1fd02 libavformat
allow individual selection of muxers and demuxers
author | mru |
---|---|
date | Mon, 10 Jul 2006 21:14:37 +0000 |
parents | d89d7ef290da |
children | 0899bfe4105c |
line wrap: on
line diff
--- a/rtsp.c Mon Jul 10 12:10:10 2006 +0000 +++ b/rtsp.c Mon Jul 10 21:14:37 2006 +0000 @@ -1345,8 +1345,8 @@ return 0; } - -static AVInputFormat sdp_demuxer = { +#ifdef CONFIG_SDP_DEMUXER +AVInputFormat sdp_demuxer = { "sdp", "SDP", sizeof(RTSPState), @@ -1355,7 +1355,7 @@ 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 @@ 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; -}