X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Frtsp.h;h=2ef68db18b2a98968f8ca7056e8bc5a2475cbeff;hb=fef5649a820b30432578e1440776e7a71bd523cc;hp=c0e025110df9ee2306b3e34fc56e133be3621c79;hpb=3df54c6bf2e5bc03b2dedcd60006d8f1df204ea3;p=ffmpeg diff --git a/libavformat/rtsp.h b/libavformat/rtsp.h index c0e025110df..2ef68db18b2 100644 --- a/libavformat/rtsp.h +++ b/libavformat/rtsp.h @@ -165,10 +165,6 @@ typedef struct RTSPMessageHeader { * returned */ char reason[256]; - - /** The "Content-Base:" field. - */ - char content_base[4096]; } RTSPMessageHeader; /** @@ -313,6 +309,10 @@ typedef struct RTSPState { /** Reusable buffer for receiving packets */ uint8_t* recvbuf; + + /** Filter incoming UDP packets - receive packets only from the right + * source address and port. */ + int filter_source; } RTSPState; /** @@ -353,7 +353,7 @@ typedef struct RTSPStream { } RTSPStream; void ff_rtsp_parse_line(RTSPMessageHeader *reply, const char *buf, - HTTPAuthState *auth_state); + RTSPState *rt, const char *method); extern int rtsp_rtp_port_min; extern int rtsp_rtp_port_max; @@ -504,4 +504,11 @@ int ff_rtsp_tcp_read_packet(AVFormatContext *s, RTSPStream **prtsp_st, */ int ff_rtsp_fetch_packet(AVFormatContext *s, AVPacket *pkt); +/** + * Do the SETUP requests for each stream for the chosen + * lower transport mode. + */ +int ff_rtsp_make_setup_request(AVFormatContext *s, const char *host, int port, + int lower_transport, const char *real_challenge); + #endif /* AVFORMAT_RTSP_H */