X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Frtsp.h;h=537d4bf333e35c875574d22e5d524bada6d462e0;hb=987903826b0dba2e134be200ac94be66b4a3acf1;hp=3321440add5617116f7e98b22eaa6e12e330f4d7;hpb=99545457bf1175d55e4eaa2c061dbf0faeb661ec;p=ffmpeg diff --git a/libavformat/rtsp.h b/libavformat/rtsp.h index 3321440add5..537d4bf333e 100644 --- a/libavformat/rtsp.h +++ b/libavformat/rtsp.h @@ -18,8 +18,8 @@ * License along with FFmpeg; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef RTSP_H -#define RTSP_H +#ifndef AVFORMAT_RTSP_H +#define AVFORMAT_RTSP_H #include #include "avformat.h" @@ -29,6 +29,10 @@ enum RTSPProtocol { RTSP_PROTOCOL_RTP_UDP = 0, RTSP_PROTOCOL_RTP_TCP = 1, RTSP_PROTOCOL_RTP_UDP_MULTICAST = 2, + /** + * This is not part of public API and shouldn't be used outside of ffmpeg. + */ + RTSP_PROTOCOL_RTP_LAST }; #define RTSP_DEFAULT_PORT 554 @@ -58,6 +62,7 @@ typedef struct RTSPHeader { RTSPTransportField transports[RTSP_MAX_TRANSPORTS]; int seq; /**< sequence number */ char session_id[512]; + char real_challenge[64]; /**< the RealChallenge1 field from the server */ } RTSPHeader; /** the callback can be used to extend the connection setup/teardown step */ @@ -81,12 +86,13 @@ typedef int FFRTSPCallback(enum RTSPCallbackAction action, int rtsp_init(void); void rtsp_parse_line(RTSPHeader *reply, const char *buf); +#if LIBAVFORMAT_VERSION_INT < (53 << 16) extern int rtsp_default_protocols; +#endif extern int rtsp_rtp_port_min; extern int rtsp_rtp_port_max; -extern AVInputFormat rtsp_demuxer; int rtsp_pause(AVFormatContext *s); int rtsp_resume(AVFormatContext *s); -#endif /* RTSP_H */ +#endif /* AVFORMAT_RTSP_H */