diff options
author | Martin Storsjö <martin@martin.st> | 2011-01-09 10:47:53 +0000 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2011-01-09 10:47:53 +0000 |
commit | a3b058b7ba46130c7951c5724e3f1714b04c9c1d (patch) | |
tree | 1985ad59fb27ca236a3df6b3d6a772ed33ac077e /libavformat | |
parent | e6dba1d881c5a677820e491a93b397deeb8c8d40 (diff) | |
download | ffmpeg-streaming-a3b058b7ba46130c7951c5724e3f1714b04c9c1d.zip ffmpeg-streaming-a3b058b7ba46130c7951c5724e3f1714b04c9c1d.tar.gz |
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')
-rw-r--r-- | libavformat/rtsp.c | 4 |
1 files changed, 4 insertions, 0 deletions
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: |