Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2011-01-09 13:47:53 +0300
committerMartin Storsjö <martin@martin.st>2011-01-09 13:47:53 +0300
commita3b058b7ba46130c7951c5724e3f1714b04c9c1d (patch)
tree1985ad59fb27ca236a3df6b3d6a772ed33ac077e /libavformat/rtsp.c
parente6dba1d881c5a677820e491a93b397deeb8c8d40 (diff)
rtsp: Properly fail if unable to open an input RTP port
Originally committed as revision 26285 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r--libavformat/rtsp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index b09ebd7642..2b61b89972 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: