[FFmpeg-devel] [PATCH 2/3] avformat/rtsp: Reindent after previous commit

Andriy Gelman andriy.gelman at gmail.com
Sun Apr 4 18:36:44 EEST 2021


From: Andriy Gelman <andriy.gelman at gmail.com>

Signed-off-by: Andriy Gelman <andriy.gelman at gmail.com>
---
 libavformat/rtsp.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 76efbf42cd..6438e2edb8 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -1466,9 +1466,9 @@ int ff_rtsp_make_setup_request(AVFormatContext *s, const char *host, int port,
      * port range, to allow for a number of ports to try even if the offset
      * happens to be at the end of the random range. */
     if (rt->rtp_port_max - rt->rtp_port_min > 1) {
-    port_off = av_get_random_seed() % ((rt->rtp_port_max - rt->rtp_port_min)/2);
-    /* even random offset */
-    port_off -= port_off & 0x01;
+        port_off = av_get_random_seed() % ((rt->rtp_port_max - rt->rtp_port_min)/2);
+        /* even random offset */
+        port_off -= port_off & 0x01;
     }
 
     for (j = rt->rtp_port_min + port_off, i = 0; i < rt->nb_rtsp_streams; ++i) {
-- 
2.31.0



More information about the ffmpeg-devel mailing list