mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-23 16:18:37 +08:00
rtsp: Properly fail if unable to open an input RTP port
Originally committed as revision 26285 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@ -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:
|
||||||
|
Reference in New Issue
Block a user