summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndriy Gelman <andriy.gelman@gmail.com>2021-07-04 11:40:26 -0400
committerAndriy Gelman <andriy.gelman@gmail.com>2021-07-05 13:37:26 -0400
commitd1f78067a6f330db9aa4d598641b71e50a21d259 (patch)
treeeab3f59b1871e3d77c39b35bd832a9bf9087ee0c
parent02387de90e71a6b035e3adf2446b6002ca135511 (diff)
avformat/rtsp: Reindent after previous commit
Reviewed-by: Martin Storsjö <martin@martin.st> Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
-rw-r--r--libavformat/rtsp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index f294d0ec24..492e60c71f 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) {