From patchwork Mon May 31 07:54:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 28006 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:b214:0:0:0:0:0 with SMTP id b20csp2655933iof; Mon, 31 May 2021 00:55:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxw88PJwi6AwieQGrnNy4boXkM2GHOGIPLlLRcSDfkXwg1+TpIrvhxgxk47d5yHH0gzyMz1 X-Received: by 2002:a05:6402:4381:: with SMTP id o1mr24781934edc.188.1622447734520; Mon, 31 May 2021 00:55:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622447734; cv=none; d=google.com; s=arc-20160816; b=rdfiaAfL1BJHYv4KB8CRNlQys3a8pM1RYVLM46/VdnaU//8ecBSOmAVSgGTuBsTK2R RhelOgQ3BvCWQqS5yMPezfK9Xu2qasji6053IubsbvI8j9nvRDY4e3EqmgNyJCvKJqES gkK+65Y9tP919T/jRFCh7Yro8mgKhkf81tv3JXW46S//GFqrimCMctDUf74UbYi5Ay6K zSfUZI27g+eM3rdECWbQk+LTwiQ5P4ZVFjwWJ57vDUwq5keE/z6ei4aYQMzl1SUHi9GX kfubdntvWtkEh+YU644FlUBCHa0wTY3IisOSszRxHl13qQuDp/CiVRl/sNiVeK9M0FMu cEFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:message-id:date:to:from :delivered-to; bh=UjQEgr9ZjJPjuvws2m+aEdWB4t3WBYAOXxygKKR4vDw=; b=Lz3zq2pWVRw34bNSygYynttczBW8gkXvNFw+u9H3e8ZplJFlkn8z7/TaSaShRKkinu 5OBBS1kYO4HIlWf+XR1S4WUuIA0RP2RbdPMBxq3SM/3a8Sk9aWCAyAFDLhPyUVLKBBcp pfncf1KEBAdBTtetgI1qe5OWzeQIhUnrVp+vbcHYHHFM8coZS3JdjIb1Ywzur0dPED5F diFpt+1DQpsVG9sHv+ZDyY/y+CNeIpn+LbnHtEfxeFAiLofWH6pt8w/o642spyc/LZcA h6AiKOoetF8FP5iUqYLIjCVSwZ88cb67EvomVbPTrFP0z5ZTzRmqpiGtj7F5QA+M/OAV hz1g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id j3si2760177ejv.180.2021.05.31.00.55.33; Mon, 31 May 2021 00:55:34 -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; 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 Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id C820168803D; Mon, 31 May 2021 10:55:29 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail0.khirnov.net (red.khirnov.net [176.97.15.12]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id E22E2687FE1 for ; Mon, 31 May 2021 10:55:22 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 0D85924069B for ; Mon, 31 May 2021 09:55:22 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id aecrUFcXVrQt for ; Mon, 31 May 2021 09:55:21 +0200 (CEST) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:2a00:c500:561:201::7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "libav.khirnov.net", Issuer "smtp.khirnov.net SMTP CA" (verified OK)) by mail0.khirnov.net (Postfix) with ESMTPS id 80644240476 for ; Mon, 31 May 2021 09:55:21 +0200 (CEST) Received: by libav.khirnov.net (Postfix, from userid 1000) id D110C3A125B; Mon, 31 May 2021 09:55:20 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Mon, 31 May 2021 09:54:52 +0200 Message-Id: <20210531075515.19544-1-anton@khirnov.net> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 01/24] sws: remove unnecessary braces 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: lyXT2RY6a9uM There used to be more code inside them, but it was removed in 6de58b49032a206985602effec91e5e46c886ea2. --- libswscale/swscale.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libswscale/swscale.c b/libswscale/swscale.c index 12160a169a..6b73c71e41 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -487,10 +487,8 @@ static int swscale(SwsContext *c, const uint8_t *src[], yuv2packed1, yuv2packed2, yuv2packedX, yuv2anyX, use_mmx_vfilter); } - { - for (i = vStart; i < vEnd; ++i) - desc[i].process(c, &desc[i], dstY, 1); - } + for (i = vStart; i < vEnd; ++i) + desc[i].process(c, &desc[i], dstY, 1); } if (isPlanar(dstFormat) && isALPHA(dstFormat) && !needAlpha) { int length = dstW;