Browse Source

rtsp: Properly fail if unable to open an input RTP port

Originally committed as revision 26285 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/n0.8
Martin Storsjö 14 years ago
parent
commit
a3b058b7ba
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      libavformat/rtsp.c

+ 4
- 0
libavformat/rtsp.c View File

@@ -1093,6 +1093,10 @@ static int make_setup_request(AVFormatContext *s, const char *host, int port,
err = AVERROR_INVALIDDATA; err = AVERROR_INVALIDDATA;
goto fail; goto fail;
} }
#else
av_log(s, AV_LOG_ERROR, "Unable to open an input RTP port\n");
err = AVERROR(EIO);
goto fail;
#endif #endif


rtp_opened: rtp_opened:


Loading…
Cancel
Save