summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2008-01-02 19:40:43 +0000
committerDiego Biurrun <diego@biurrun.de>2008-01-02 19:40:43 +0000
commitc482500fa33fd420d37b407fce83162a3269f4a7 (patch)
tree656c7932d0f5f9c9de2217a7f96c61dcc604a3a3 /libavformat
parentae904fd028420d818f5603225df885978956a722 (diff)
Drop RTSP default protocol.
patch by Ronald S. Bultje, rsbultje gmail com Originally committed as revision 11377 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/rtsp.c2
-rw-r--r--libavformat/rtsp.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index ff66f4bb44..14f0a5ce43 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -77,7 +77,9 @@ static int rtsp_read_play(AVFormatContext *s);
/* XXX: currently, the only way to change the protocols consists in
changing this variable */
+#if LIBAVFORMAT_VERSION_INT < (53 << 16)
int rtsp_default_protocols = (1 << RTSP_PROTOCOL_RTP_UDP);
+#endif
static int rtsp_probe(AVProbeData *p)
{
diff --git a/libavformat/rtsp.h b/libavformat/rtsp.h
index 67d37d6871..6adadbc815 100644
--- a/libavformat/rtsp.h
+++ b/libavformat/rtsp.h
@@ -81,7 +81,9 @@ 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;