summaryrefslogtreecommitdiff
path: root/libavformat/rtsp.c
Commit message (Collapse)AuthorAge
* Include os_support.h which has a fallback declaration of socklen_tDave Yeo2010-03-10
| | | | | | | | This fixes compilation on some OSes Patch by Dave Yeo, daveryeo at telus dot net Originally committed as revision 22426 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use rt->control_uri consequently instead of s->filename in all RTSP commandsMartin Storsjö2010-03-09
| | | | Originally committed as revision 22403 to svn://svn.ffmpeg.org/ffmpeg/trunk
* RTSP: Resolve and use the actual IP address of the peer we're connected to,Martin Storsjö2010-03-09
| | | | | | | | instead of using the original host name, since the RTP (and UDP) protocols may choose another IP address if the host name resolves into several different addresses. Originally committed as revision 22398 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ReindentMartin Storsjö2010-03-08
| | | | Originally committed as revision 22322 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename url_split to ff_url_splitMartin Storsjö2010-03-08
| | | | | | Since this function isn't in the public API, it should have an ff_ prefix. Originally committed as revision 22321 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Localize the #define _SVID_SOURCE needed for inet_aton() to os_support.cDavid Conrad2010-03-07
| | | | Originally committed as revision 22284 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use ff_url_join for assembling URLs, instead of snprintfMartin Storsjö2010-03-05
| | | | | | | | | This ensures proper escaping of numerical IPv6 addresses. The RTSP (de)muxer needs its own network initialization, since it isn't a protocol and url_open hasn't been called yet. Originally committed as revision 22226 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename RTP depacketizer files from rtp_* to rtpdec_*Martin Storsjö2010-02-28
| | | | Originally committed as revision 22109 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetics: reindentMartin Storsjö2010-02-23
| | | | Originally committed as revision 21995 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Prefix non-static RTSP functions with ff_.Ronald S. Bultje2010-02-23
| | | | Originally committed as revision 21974 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add an RTSP muxerMartin Storsjö2010-02-22
| | | | Originally committed as revision 21971 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Free metadata in chained RTP muxers in the RTSP muxerMartin Storsjö2010-02-22
| | | | | | This fixes a minor memory leak Originally committed as revision 21970 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetics: reindentMartin Storsjö2010-02-22
| | | | Originally committed as revision 21969 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add declarations and doxygen documentation of generic rtsp support functionsMartin Storsjö2010-02-22
| | | | | | to rtsp.h, and make the functions non-static Originally committed as revision 21968 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetics: reindent after applying patchesMartin Storsjö2010-02-22
| | | | Originally committed as revision 21967 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Don't follow RTSP redirects when used as a muxerMartin Storsjö2010-02-22
| | | | Originally committed as revision 21966 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add a function rtsp_setup_output_streams for announcing the SDPMartin Storsjö2010-02-22
| | | | | | | and setting up the internal RTSPStream data structures when using the RTSP code in muxer mode. Originally committed as revision 21965 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Create AVFormatContext objects as private transport for output RTSP sessionsMartin Storsjö2010-02-22
| | | | Originally committed as revision 21964 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Split rtsp_read_header() into two functions, so that the main part (now alsoMartin Storsjö2010-02-19
| | | | | | | | known as rtsp_connect()) can be used in the RTSP muxer. Patch by Martin Storsjö <$firstname $firstname st>. Originally committed as revision 21915 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Split out input-specific parts of rtsp_read_header() into its own, new,Martin Storsjö2010-02-19
| | | | | | | | | function (rtsp_setup_input_streams()), as preparation for the upcoming RTSP muxer. Patch by Martin Storsjö <$firstname $firstname st>. Originally committed as revision 21914 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Only send out NAT-punching RTP/RTCP packets when we're in demuxer mode, i.e.Martin Storsjö2010-02-19
| | | | | | | | don't send them when acting as a RTSP muxer. Patch by Martin Storsjö <$firstname $firstname st>. Originally committed as revision 21913 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use mode=receive instead of mode=play if in RTSP muxer (instead of demuxer)Martin Storsjö2010-02-19
| | | | | | | | mode. Patch by Martin Storsjö <$firstname $firstname st>. Originally committed as revision 21912 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make rtsp_close_streams() take a AVFormatContext instead of a RTSPStateMartin Storsjö2010-02-19
| | | | | | | | argument, so we can use AVFormatContext->* here in the future. Patch by Martin Storsjö <$firstname $firstname st>. Originally committed as revision 21911 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename RTSP_STATE_PLAYING to _STREAMING, since that better covers theMartin Storsjö2010-02-19
| | | | | | | | future use of the rtsp* codebase for RTSP muxing. Patch by Martin Storsjö <$firstname $firstname st>. Originally committed as revision 21896 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add functions to send RTSP commands with content attached to them. This willMartin Storsjö2010-02-17
| | | | | | | | | be used eventually in the RTSP muxer (see thread "[PATCH] RTSP muxer, round 3" on mailinglist). Patch by Martin Storsjö <$firstname $firstname st>. Originally committed as revision 21862 to svn://svn.ffmpeg.org/ffmpeg/trunk
* When using RTP-over-UDP, send dummy packets during stream setup, similar toMartin Storsjö2010-02-16
| | | | | | | | | what e.g. RealPlayer does. This allows proper port forwarding setup in NAT- based environments. Patch by Martin Storsjö <$firstname at $firstname dot st>. Originally committed as revision 21856 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Reindent after r21741.Ronald S. Bultje2010-02-10
| | | | Originally committed as revision 21742 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Don't forget to set known audio parameters (samplerate, etc.) if the codec isRonald S. Bultje2010-02-10
| | | | | | | not supported in FFmpeg. This will cause crashes later because the samplerate is used to initialize the timebase. Originally committed as revision 21741 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Don't use tcp_fd if we're not using TCP-based connections (e.g. whenJeremy Morton2010-01-26
| | | | | | | reading direct SDP files to set up UDP-based RTP-streams). Fixes issue 1713. Patch by Jeremy Morton <ffmpeg game-point net>. Originally committed as revision 21461 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use the control URI from the SDP (if present) rather than the input filename,Alan Steremberg2010-01-22
| | | | | | | | if present. This fixes playback of a number of MS-RTSP streams, mostly these for which playback contains a session key in the URI. Fixes issue 1697. Patch by Alan Steremberg <$firstname dot $lastname () gmail com>. Originally committed as revision 21381 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove reply and content_ptr arguments from rtsp_send_cmd_async(), sinceRonald S. Bultje2010-01-21
| | | | | | they are unused. Originally committed as revision 21371 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change on rtsp_send_cmd() to the _async() version since we don't use theRonald S. Bultje2010-01-21
| | | | | | response anyway. Originally committed as revision 21370 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Reindent after r21368.Ronald S. Bultje2010-01-21
| | | | Originally committed as revision 21369 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Pretty embarassing bug; we shouldn't use av_strlcatf() on an uninitializedRonald S. Bultje2010-01-21
| | | | | | buffer, that is doomed to not work at some point. Originally committed as revision 21368 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix issue1658 (trailing space in rtpmap descriptor).Ronald S. Bultje2010-01-13
| | | | Originally committed as revision 21187 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add correct log context to av_log() calls in parse_rtpmap().Ronald S. Bultje2010-01-07
| | | | Originally committed as revision 21072 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Re-indent to more closely follow general coding standards used in otherRonald S. Bultje2010-01-07
| | | | | | | parts of FFmpeg. Also change a starting condition; while (condition) { ... bla = bla->next; } loop into a proper for() loop. Originally committed as revision 21071 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove forward declarations.Ronald S. Bultje2010-01-04
| | | | Originally committed as revision 21020 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix typo.Stefano Sabatini2010-01-01
| | | | Originally committed as revision 20990 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove residual use of the doxygen markup which is deprecated,Stefano Sabatini2010-01-01
| | | | | | consistent with r19122. Originally committed as revision 20989 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename internal functionLuca Barbato2009-12-30
| | | | | | | | sdp_read_packet -> rtsp_fetch_packet This way describes slightly better what it does. Originally committed as revision 20982 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add some "#if"s to avoid compiling the RTSP code when the RTSP demuxerLuca Abeni2009-11-13
| | | | | | is disabled, and remove a useless "#if CONFIG_SDP_DEMUXER" Originally committed as revision 20530 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Split the sdp_read_packet() function out of rtsp_read_packet().Luca Abeni2009-11-12
| | | | | | This allows to avoid compiling RTSP code when not needed. Originally committed as revision 20526 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move some some functions around, so that splitting the SDP code out ofLuca Abeni2009-11-12
| | | | | | rtsp_read_packet() is simpler. Originally committed as revision 20525 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rtsp_close_streams frees the auth_b64 line alreadyLuca Barbato2009-10-25
| | | | Originally committed as revision 20370 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Support 3xx redirection in rtspLuca Barbato2009-10-25
| | | | | | | | | All the error codes 3xx got managed the same way. After setup/early play redirection will not be managed REDIRECT method is yet to be supported (if somebody knows a server implementing it please contact me) Originally committed as revision 20369 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Just remove params understood by the demuxerLuca Barbato2009-10-24
| | | | | | This should unbreak certain urls. Originally committed as revision 20364 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Suppress ?params in the rtsp uriLuca Barbato2009-10-24
| | | | | | | | | | | Right now rtsp demuxer receives it's ffmpeg specific params encoded in the url That made the server receiving requests with the url ending with "?udp", "?multicast" and "?tcp". That may or may not cause problems to servers with overly strict or overly simple uri parsers Patch from Armand Bendanan (name.surnameATfreeDOTfr) Originally committed as revision 20363 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use sdp c= line if the rtsp Transport line doesn't have a destinationLuca Barbato2009-10-24
| | | | | | | | Transport:destination in rtsp is optional, c= line in sdp is compulsory Patch from Armand Bendanan (name.surnameATfreeDOTfr) Originally committed as revision 20362 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove ancient redir demuxer.Diego Biurrun2009-10-24
| | | | | | HTTP supports redirection just fine without it. Originally committed as revision 20361 to svn://svn.ffmpeg.org/ffmpeg/trunk