From patchwork Sun Jul 4 15:40:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andriy Gelman X-Patchwork-Id: 28758 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a5d:965a:0:0:0:0:0 with SMTP id d26csp3387086ios; Sun, 4 Jul 2021 08:41:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4kvbGxIWpHOdbwTgYQ7hQt+1zAU5Z9FJTwBnKKDzkUEq9tt1YRN3TOo+IO/gu8hFtC53i X-Received: by 2002:a17:906:cc89:: with SMTP id oq9mr3213931ejb.418.1625413277085; Sun, 04 Jul 2021 08:41:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625413277; cv=none; d=google.com; s=arc-20160816; b=eIei34ok27Of5RL0M78R+jgnXGLuUUdHvIjH6kiRsLlkOodHNo/vXl6nP+5tFXmqNe I4w93Arb9dcvEhp51In41S4+dGD+tKKyShGVy9VmBpso6zs5OfSkxkKT6CtbuajNyO/Z 5Mu7PwcfIqpjvNGE9QU3WkhCV0FuxrZeRdtYMzhVxu75rktlIZFHRNH5pfPK1lcfxIqM QtButtD5IEpy15xW981MsR48nsObu45x2J1svdLDXvy5zEdNzfpjTBHhte1mv6kn7trV 7sRUWHisprwEanqdFu8Cx3lbW63jupIAxn0vf734PNL/Dm1M+p4alstl2CQEp4mLqLcK zAFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:delivered-to; bh=DILcx0XN+dw0ksvQl0KJTB2Yg0wT9YXVcTw8E4WAn00=; b=Epcr66/CcMX5LwqaYLsTVCjxs8LXC1z5jcECpsditLQSiBQ/k0IdonFE1DQPncCqWf hQbV/GSF7mUYmi6eTtsImGGtAH7CdDtFhrqG7IBJGcOC9n6NlvRgt3AXy3nARBY4ynxZ Jjk3bVjIZqdArsFaN7KzJykHTS28NX3tcUis4wQMiD5SFUT1dLiB0wPH1FnYHnCLSYpk WXpTOdC/1V1qeXc4iTd4TSSQIoFeFgcCG+fiqcdEXlrQ4Hc2tapyYEsi5f6pGthqfvU3 H6UsJwgjR+Zz0dLBr9aLIku8LejRDL5oD61b95QCIgM0nDAmV+5ORe5v7IVp9T5p4u52 lGoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=D6KMjWGx; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id r22si8477314edi.451.2021.07.04.08.41.16; Sun, 04 Jul 2021 08:41:17 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=D6KMjWGx; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 7173968A5D9; Sun, 4 Jul 2021 18:41:08 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-qk1-f178.google.com (mail-qk1-f178.google.com [209.85.222.178]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 51F4A68A3B8 for ; Sun, 4 Jul 2021 18:41:02 +0300 (EEST) Received: by mail-qk1-f178.google.com with SMTP id q16so14617888qke.10 for ; Sun, 04 Jul 2021 08:41:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=J3FCAiZUzG6bxm9GfHYs6vOmfWVQJLrQb7/KIcFvuhU=; b=D6KMjWGxzGXX6+l3XI7rFu+B1Kq42It60CX5qpns4O3XwE6Udo8ZRPNkfuLHiGZSSR t05xVfyGsaEwUkAu2pOcKWEHssTW0m1wR3nnzkO78kE+L/CD5Z8/foXaSjy0dv9Ek3NK amIC7bpSA4cx8gn6DG9lMs3CJZ66vwRoQjS9gFf1SL1IdvkI+ShS9EOiNUfXVO8H7rxG aQdS/cb463E87hdFgi9BvPaFT8kEzCj9GAGmQpxt5jNlHGGAalDLnigfj7xZMMLM+PCA UB56oZ8j1SMvZkeZ1eerhdOTJE2S4sOoBmR2wzDfZVhXiyYdnx5pw/2FmaF1vP9rJcWu zeTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=J3FCAiZUzG6bxm9GfHYs6vOmfWVQJLrQb7/KIcFvuhU=; b=I1l1W9/hQQlYa0zR9FBYn9WkKsNrzsGA8gGYVFFnafhfuWMBy6PX2Z6YtgkpuXXipB VzTpk4fLYSmCOAONQDEJBDCNJTQm3NmMgEDbBXhy4vEOE/dkF2AbhWTTfEFWVxcqjB4f wh8ynAa0iYop4Za0GShW3e9yvkBPTyNADbW7baMYQGZSRcpEGBJvxtsYB9zqVCWWumgm mNfpwc01qRTfxA+KZmY88dCV//FQPJLos5V5V4KVO7muHpzT4f/sjEvCZmWUhaY9M0rK 31bCkhwL6oN4yx2B4LOPtFGIEDJ7l4V9hQcwE/osa4sbf/k3sDmVX+ypHKTbZQRVeZk8 LS+w== X-Gm-Message-State: AOAM533u/vAm2tAHFcR7pzy62Uk6jHQ+xrMDRTFM0GTftBI1Fmz25Yet f2QhYzDRs21swgo6zm82/bfcUVFqR1M= X-Received: by 2002:a37:8345:: with SMTP id f66mr9735293qkd.396.1625413260898; Sun, 04 Jul 2021 08:41:00 -0700 (PDT) Received: from localhost.localdomain (c-73-149-98-40.hsd1.ma.comcast.net. [73.149.98.40]) by smtp.gmail.com with ESMTPSA id s13sm4215304qkm.87.2021.07.04.08.41.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Jul 2021 08:41:00 -0700 (PDT) From: Andriy Gelman X-Google-Original-From: Andriy Gelman To: ffmpeg-devel@ffmpeg.org Date: Sun, 4 Jul 2021 11:40:26 -0400 Message-Id: <20210704154027.13380-2-andriy.gelman@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210704154027.13380-1-andriy.gelman@gmail.com> References: <20210704154027.13380-1-andriy.gelman@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2 2/3] avformat/rtsp: Reindent after previous commit X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Andriy Gelman Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: rdvtkSX7oahE From: Andriy Gelman Signed-off-by: Andriy Gelman --- libavformat/rtsp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) {