diff options
author | Martin Storsjö <martin@martin.st> | 2011-06-24 01:49:09 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2011-10-17 19:57:48 +0300 |
commit | eca4850c6d2e8074e76234060991f490f1cff950 (patch) | |
tree | 8587a2645eaf538fabbb2276008865cf30df7478 /libavformat/rtsp.h | |
parent | 2c9aa0247d6a5654d955fb018a84e7f2ec3a355e (diff) | |
download | ffmpeg-eca4850c6d2e8074e76234060991f490f1cff950.tar.gz |
rtsp: Accept options via private avoptions instead of URL options
Eventually, the old way of passing options by adding
stuff to the URL can be dropped.
This avoids having to tamper with the user-specified URL to
pass options on the transport mode. This also works better
with redirects, since the options don't need to be parsed out
from the URL.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtsp.h')
-rw-r--r-- | libavformat/rtsp.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/libavformat/rtsp.h b/libavformat/rtsp.h index 5327b00679..a03ad9d2fe 100644 --- a/libavformat/rtsp.h +++ b/libavformat/rtsp.h @@ -38,7 +38,10 @@ enum RTSPLowerTransport { RTSP_LOWER_TRANSPORT_UDP = 0, /**< UDP/unicast */ RTSP_LOWER_TRANSPORT_TCP = 1, /**< TCP; interleaved in RTSP */ RTSP_LOWER_TRANSPORT_UDP_MULTICAST = 2, /**< UDP/multicast */ - RTSP_LOWER_TRANSPORT_NB + RTSP_LOWER_TRANSPORT_NB, + RTSP_LOWER_TRANSPORT_HTTP = 8, /**< HTTP tunneled - not a proper + transport mode as such, + only for use via AVOptions */ }; /** @@ -350,8 +353,17 @@ typedef struct RTSPState { /** Whether the server accepts the x-Dynamic-Rate header */ int accept_dynamic_rate; + + /** + * Various option flags for the RTSP muxer/demuxer. + */ + int rtsp_flags; } RTSPState; +#define RTSP_FLAG_FILTER_SRC 0x1 /**< Filter incoming UDP packets - + receive packets only from the right + source address and port. */ + /** * Describes a single stream, as identified by a single m= line block in the * SDP content. In the case of RDT, one RTSPStream can represent multiple |