[FFmpeg-devel] [PATCH] rtsp: Properly fail if unable to open an input RTP port

Martin Storsjo martin
Mon Jan 3 12:01:26 CET 2011


---
 libavformat/rtsp.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 431703e..fbf6111 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -1026,6 +1026,8 @@ static int make_setup_request(AVFormatContext *s, const char *host, int port,
                     if (url_open(&rtsp_st->rtp_handle, buf, URL_RDWR) == 0)
                         goto rtp_opened;
                 }
+                err = AVERROR(EIO);
+                goto fail;
             }
 
 #if 0
-- 
1.7.3.1




More information about the ffmpeg-devel mailing list