[SCM] libav/experimental: rtsp: Properly fail if unable to open an input RTP port

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:21:40 UTC 2013


The following commit has been merged in the experimental branch:
commit a3b058b7ba46130c7951c5724e3f1714b04c9c1d
Author: Martin Storsjö <martin at martin.st>
Date:   Sun Jan 9 10:47:53 2011 +0000

    rtsp: Properly fail if unable to open an input RTP port
    
    Originally committed as revision 26285 to svn://svn.ffmpeg.org/ffmpeg/trunk

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:

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list