X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Frtsp.h;h=288f69776ddebe990bb75a03ac0d9520380cd3da;hb=e3227b3f25d8dacba271dd60c07e7302a8272f5d;hp=481e2ba499983ade91ed143d221744fb6d3f0b16;hpb=50c5f1598d6a6a162b1add7a7b32e9bbd50287e4;p=ffmpeg diff --git a/libavformat/rtsp.h b/libavformat/rtsp.h index 481e2ba4999..288f69776dd 100644 --- a/libavformat/rtsp.h +++ b/libavformat/rtsp.h @@ -18,15 +18,21 @@ * 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 FFMPEG_RTSP_H +#define FFMPEG_RTSP_H +#include +#include "avformat.h" #include "rtspcodes.h" 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 @@ -76,19 +82,16 @@ typedef int FFRTSPCallback(enum RTSPCallbackAction action, char *buf, int buf_size, void *arg); -/** useful for modules: set RTSP callback function */ -void rtsp_set_callback(FFRTSPCallback *rtsp_cb); - 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 FFRTSPCallback *ff_rtsp_callback; -extern AVInputFormat rtsp_demuxer; int rtsp_pause(AVFormatContext *s); int rtsp_resume(AVFormatContext *s); -#endif /* RTSP_H */ +#endif /* FFMPEG_RTSP_H */