summaryrefslogtreecommitdiff
path: root/libavformat/rtsp.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2011-07-17 13:27:27 +0200
committerDiego Biurrun <diego@biurrun.de>2011-07-18 18:22:02 +0200
commit76e25dbca6eb6ea899baa042902bd038bd2e3056 (patch)
tree5db14ef7ee802239fbfb0dbd55c51a8dd051ed45 /libavformat/rtsp.c
parente463f0e9790b4ee00b1a0572e5de600476ee0618 (diff)
rtsp: remove disabled code
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r--libavformat/rtsp.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 949c174070..8b70c8b28a 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -1116,17 +1116,9 @@ int ff_rtsp_make_setup_request(AVFormatContext *s, const char *host, int port,
}
}
-#if 0
- /* then try on any port */
- if (ffurl_open(&rtsp_st->rtp_handle, "rtp://", AVIO_FLAG_READ) < 0) {
- err = AVERROR_INVALIDDATA;
- goto fail;
- }
-#else
av_log(s, AV_LOG_ERROR, "Unable to open an input RTP port\n");
err = AVERROR(EIO);
goto fail;
-#endif
rtp_opened:
port = rtp_get_local_rtp_port(rtsp_st->rtp_handle);