Commit 62c3c8ca authored by Martin Storsjö's avatar Martin Storsjö

rtsp: Don't use uninitialized data if there are no streams

Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent 58e1032d
......@@ -1391,7 +1391,7 @@ int ff_rtsp_make_setup_request(AVFormatContext *s, const char *host, int port,
goto fail;
}
if (reply->timeout > 0)
if (rt->nb_rtsp_streams && reply->timeout > 0)
rt->timeout = reply->timeout;
if (rt->server_type == RTSP_SERVER_REAL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment