diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 4ab2c334894d8291a828c19de7b0707541f8a07c..7c82a37e4236b69e38079b91cdd70e82dce3e5e0 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -1167,8 +1167,8 @@ static int make_setup_request(AVFormatContext *s, const char *host, int port,
                             reply->transports[0].source,
                             reply->transports[0].server_port_min, NULL);
             } else {
-            ff_url_join(url, sizeof(url), "rtp", NULL, host,
-                        reply->transports[0].server_port_min, NULL);
+                ff_url_join(url, sizeof(url), "rtp", NULL, host,
+                            reply->transports[0].server_port_min, NULL);
             }
             if (!(rt->server_type == RTSP_SERVER_WMS && i > 1) &&
                 rtp_set_remote_url(rtsp_st->rtp_handle, url) < 0) {