summaryrefslogtreecommitdiffstats
path: root/libavformat/rtspdec.c
Commit message (Collapse)AuthorAgeFilesLines
* rtspdec: Set the default port for listen mode, if none is specifiedMartin Storsjö2012-10-121-0/+4
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtspdec: Fix use of uninitialized byteMichael Niedermayer2012-10-121-2/+2
| | | | | | ffurl_read_complete can return 0 as well as negative error codes. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtspdec: use av_strlcpy for writing into fixed size bufferJanne Grunau2012-10-091-1/+1
| | | | Fixes CID231347.
* avformat: Drop pointless "format" from container long namesDiego Biurrun2012-07-301-1/+1
|
* Add missing libavutil/time.h includes.Anton Khirnov2012-07-281-0/+1
|
* rtsp: Add listen modeJordi Ortiz2012-07-101-29/+544
| | | | | | | This makes the RTSP demuxer act as a server, listening for an incoming connection. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtsp: Move rtsp_read_closeJordi Ortiz2012-07-101-14/+14
| | | | | | | This avoids having to add forward declarations in the following RTSP listen mode commit. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtsp: Don't use av_malloc(0) if there are no streamsMartin Storsjö2012-04-081-2/+3
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* cosmetics: Align some AVInput/OutputFormat declarationsMartin Storsjö2012-03-191-4/+4
| | | | | | Also add missing trailing commas. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtsp: Resend new keepalive commands if they used stale authMartin Storsjö2012-03-131-1/+6
| | | | | | | | | | | | | These commands are sent asynchronously, not waiting for the reply. This reply is parsed later by ff_rtsp_tcp_read_packet or udp_read_packet. If the reply indicates that we used stale authentication and need to use a new nonce, resend a new keepalive command immediately. This is the only request sent asynchronously, so currently there's no other command that needs to be resent in the same way. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtsp: Make rtsp_demuxer_class staticMartin Storsjö2012-02-151-1/+1
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* lavf: remove AVFormatParameters from AVFormatContext.read_header signatureAnton Khirnov2012-01-271-2/+1
|
* rtpdec: unwrap RTP timestamps for PTS calculationJohn Brooks2011-11-181-0/+2
| | | | | | The timestamp field in RTPDemuxContext was unused before this. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtsp: Merge the AVOption listsMartin Storsjö2011-10-171-7/+1
| | | | | | | | This eases adding options that are common for both. The AV_OPT_FLAG_EN/DECODING_PARAM still indicates whether they belong to the muxer or demuxer. Signed-off-by: Martin Storsjö <martin@martin.st>
* AVOptions: rename FF_OPT_TYPE_* => AV_OPT_TYPE_*Anton Khirnov2011-10-121-1/+1
|
* lavf,lavd: remove all usage of AVFormatParameters from demuxers.Anton Khirnov2011-08-151-5/+0
| | | | | | AVFormatParameters are converted into corresponding private options in av_open_input_file/stream() compat wrappers, so accessing them from demuxers is redundant.
* rtsp: remove disabled codeDiego Biurrun2011-07-181-6/+0
|
* lavf: use designated initialisers for all (de)muxers.Anton Khirnov2011-07-171-8/+8
| | | | It's more readable and less prone to breakage.
* Do not include mathematics.h in avutil.hMans Rullgard2011-07-031-0/+1
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Replace some nonstandard DEBUG_* preprocessor directives by plain DEBUG.Diego Biurrun2011-06-071-7/+0
|
* rtspdec: add initial_pause private option.Anton Khirnov2011-05-271-1/+20
| | | | Deprecate corresponding AVFormatParameters field.
* rtsp: Only do keepalive using GET_PARAMETER if the server supports itMartin Storsjö2011-05-111-1/+3
| | | | | | | | | | | | | | | | This is more like what VLC does. If the server doesn't mention supporting GET_PARAMETER in response to an OPTIONS request, VLC doesn't send any keepalive requests at all. After this patch, libavformat will still send OPTIONS keepalives if GET_PARAMETER isn't explicitly said to be supported. Some RTSP cameras don't support GET_PARAMETER, and will close the connection if this is sent as keepalive request (but support OPTIONS just fine, but probably don't need any keepalive at all). Some other cameras don't support using OPTIONS as keepalive, but require GET_PARAMETER instead. Signed-off-by: Martin Storsjö <martin@martin.st>
* avio: make url_read_complete() internal.Anton Khirnov2011-04-041-2/+3
|
* rtsp: Use GET_PARAMETER for keep-alive for generic RTSP serversMartin Storsjö2011-03-301-1/+1
| | | | | | | | | According to the RFC, GET_PARAMETER should be used for this, and according to a report from Tim Ouellette, OPTIONS doesn't work for keeping the connection alive for some servers. Also, live555 uses GET_PARAMETER for this purpose. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* Do not use format string "%0.3f" for RTSP Range field.Carl Eugen Hoyos2011-03-221-2/+3
| | | | | | The format string was locale-depending. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-191-4/+4
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* avio: rename url_fopen/fclose -> avio_open/close.Anton Khirnov2011-02-231-1/+1
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* libavformat: Remove FF_NETERRNO()Martin Storsjö2011-02-231-1/+1
| | | | | | | | | | | | | | Map EAGAIN and EINTR from ff_neterrno to the normal AVERROR() error codes. Provide fallback definitions of other errno.h network errors, mapping them to the corresponding winsock errors. This eases catching these error codes in common code, without having to distinguish between FF_NETERRNO(EAGAIN) and AVERROR(EAGAIN). This fixes roundup issue 2614, unbreaking blocking network IO on windows. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* rtsp/rdt: Assign the RTSPStream index to AVStream->idMartin Storsjö2011-02-111-1/+1
| | | | | | | | | | | | This is used for mapping AVStreams back to their corresponding RTSPStream. Since d9c0510, the RTSPStream pointer isn't stored in AVStream->priv_data any longer, breaking this mapping from AVStreams to RTSPStreams. Also, we don't need to clear the priv_data in rdt cleanup any longer, since it isn't set to duplicate pointers. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Replace dprintf with av_dlogLuca Barbato2011-01-291-2/+2
| | | | dprintf clashes with POSIX.1-2008
* rtsp: make ff_sdp_parse return value forwardedLuca Barbato2011-01-281-1/+1
| | | | | the sdp demuxer did not forward it at all while the rtsp demuxer assumed a single kind of error
* Prefix all _demuxer, _muxer, _protocol from libavformat and libavdevice.Diego Elio Pettenò2011-01-261-1/+1
| | | | | This also lists the objects from those two libraries as internal (by adding the ff_ prefix) so that they can then be hidden via linker scripts.
* rtspdec: Retry with TCP if UDP failedMartin Storsjö2011-01-241-1/+40
| | | | Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
* rtspdec: Move rtsp_read_pause up, next to rtsp_read_playMartin Storsjo2011-01-241-18/+18
| | | | Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
* ReindentMartin Storsjö2011-01-051-3/+3
| | | | Originally committed as revision 26235 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rtsp: Simplify codeMartin Storsjö2011-01-051-7/+4
| | | | Originally committed as revision 26234 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rtsp: Move resetting of rtpdec parameters to before sending the PLAY requestMartin Storsjö2011-01-051-5/+13
| | | | Originally committed as revision 26233 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rtsp: Store the Content-Base header value straight to the targetMartin Storsjö2011-01-021-3/+0
| | | | | | | This avoids having a large temporary buffer in the struct used for storing the rtsp reply headers. Originally committed as revision 26192 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rtsp: Add a method parameter to ff_rtsp_read_replyMartin Storsjö2011-01-021-1/+1
| | | | Originally committed as revision 26189 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rtpdec: Emit timestamps for packets before the first RTCP packet, tooMartin Storsjö2011-01-011-0/+2
| | | | | | | | Emitted timestamps in each stream start from 0, for the first received RTP packet. Once an RTCP packet is received, that one is used for sync, emitting timestamps that fit seamlessly into the earlier ones. Originally committed as revision 26187 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rtsp: Parse and use the Content-Base reply header, if presentMartin Storsjö2010-11-151-0/+3
| | | | | | This fixes playing RTSP urls with query parameters. Originally committed as revision 25755 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rtsp: Set the real_setup pointer properly, avoid out of bounds memory accessesYuriy Kaminskiy2010-11-061-1/+1
| | | | | | | | | | This fixes a regression since svn rev 24752, where the real_setup pointer was set incorrectly. The arithmetic with the real_setup_cache pointer is in units of enum AVDiscard, so the sizeof multiplication should be removed. Patch by Yuriy Kaminskiy, yumkam at mail dot ru. Originally committed as revision 25684 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rtsp: Split out the RTSP demuxer functions to a separate, new fileMartin Storsjö2010-10-291-0/+364
Originally committed as revision 25601 to svn://svn.ffmpeg.org/ffmpeg/trunk
OpenPOWER on IntegriCloud