diff mbox series

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

Message ID 20210704154027.13380-2-andriy.gelman@gmail.com
State Accepted
Commit d1f78067a6f330db9aa4d598641b71e50a21d259
Headers show
Series [FFmpeg-devel,v2,1/3] avformat/rtsp: Set port_off to zero for low min/max port range | expand

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Andriy Gelman July 4, 2021, 3:40 p.m. UTC
From: Andriy Gelman <andriy.gelman@gmail.com>

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

Patch

diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 0185baca8e..bedb75c7bd 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -1458,9 +1458,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 >= 4) {
-    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) {