From a3b058b7ba46130c7951c5724e3f1714b04c9c1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Sun, 9 Jan 2011 10:47:53 +0000 Subject: rtsp: Properly fail if unable to open an input RTP port Originally committed as revision 26285 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/rtsp.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libavformat/rtsp.c') diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index b09ebd7..2b61b89 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -1093,6 +1093,10 @@ static int make_setup_request(AVFormatContext *s, const char *host, int port, 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: -- cgit v1.1