mirror of https://git.ffmpeg.org/ffmpeg.git
rtsp: Don't use uninitialized data if there are no streams
Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
58e1032d8f
commit
62c3c8ca78
|
@ -1391,7 +1391,7 @@ int ff_rtsp_make_setup_request(AVFormatContext *s, const char *host, int port,
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (reply->timeout > 0)
|
if (rt->nb_rtsp_streams && reply->timeout > 0)
|
||||||
rt->timeout = reply->timeout;
|
rt->timeout = reply->timeout;
|
||||||
|
|
||||||
if (rt->server_type == RTSP_SERVER_REAL)
|
if (rt->server_type == RTSP_SERVER_REAL)
|
||||||
|
|
Loading…
Reference in New Issue