Message ID | D41CE2FHZUD4.1IKZAL44JIH0H@gmail.com |
---|---|
State | New |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:9c4f:0:b0:48e:c0f8:d0de with SMTP id w15csp1401170vqu; Sun, 8 Sep 2024 20:44:18 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVTPopeO/qglwo1gfu3aIaVsFZFYVHVLOZZT1reII8ttGOf2wrnzW/eIYOOWjSCoG3+xTl8h0w3OLtJRQACSzQ5@gmail.com X-Google-Smtp-Source: AGHT+IEwU/wDtnyLiWjak9lsz4Ceb/clYOJO9Iuu3n5pHhxjg3PNvVDGFo/TwJ+fL8fSkCUYHrfN X-Received: by 2002:a05:6512:1395:b0:52e:764b:b20d with SMTP id 2adb3069b0e04-536587b4d0emr5447086e87.28.1725853458617; Sun, 08 Sep 2024 20:44:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725853458; cv=none; d=google.com; s=arc-20240605; b=cZ9yeeFXkqwB2UtQtL1dipYAXw/mLkBXDKD3eeGeQTU4yzCcyTuyE3dm70c0YfuVEq Nafup06ofB4ubub8ZB8vP4m2Z2vg2tqfqRzmrDOQwWfzgH911RzkueRAZHjogLQ4x6yt aEZkGoAhgGXxYBI6FW9K7YNvxMMKiU6Kbz2iOzLBLy6moePFyJHMXcRELn9q+epV+kYh F/e3YAZ4n2kwAcMwI694xumnVOJBwpxD3iRehR+rESg11fasuDssweZjVG19onH3cM3L 7LmMmANeKkFn6omwWyHPm8YZ9vbJ0MMyri5d4RqsAs4KDYqq3ooK9HHjUJXU1TTZlO1r Oytw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:content-transfer-encoding:mime-version:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:date:from:to:message-id:in-reply-to :dkim-signature:delivered-to; bh=RVb/ISSHWRBAooIG1fCbBuh+9pJjWQRylMG0SyDDx2g=; fh=5IeVwzS1vbVKjIV8MP3mnmnRtZGb8uteQ9r4QD2keV0=; b=H3UhafyfaEs7BdCGLSldwS24pRwYdO56ZHbswhEy6wupc6nFEVN2q5G+PGv17D56ZX 023wIekttvLrrMQ7ZtVbcwFsfDOYy6JuVo4IuFo2UWc4YTzFjt2RMjTchmF0MRaSiV3p CjHxogQp4bMAHTmuEEkerfk4bsDmEDLQuDO5CzEWMEGI/JC8nXbusZusuCHLRYq8CjSd /f4U2RNWEf32/QRV27jS84UOSTI1hpO6e0HXgEOGdzgCmyX454JfkRA3Cl8tTtmz/rFC MiP2WEQqcd+IjCtKC0o3hBuIbpK/RHf0NssxLX+48Lzl4CycRCgzT1NRsPKP7HeTz8Yb GlWw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20230601 header.b=IIYrIhWh; 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; dara=fail header.i=@gmail.com Return-Path: <ffmpeg-devel-bounces@ffmpeg.org> Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id 2adb3069b0e04-5365f910944si1335096e87.644.2024.09.08.20.44.18; Sun, 08 Sep 2024 20:44:18 -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=20230601 header.b=IIYrIhWh; 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; dara=fail header.i=@gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 4238868DE90; Mon, 9 Sep 2024 03:56:21 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id BD25968DDAF for <ffmpeg-devel@ffmpeg.org>; Mon, 9 Sep 2024 03:55:55 +0300 (EEST) Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-374c6187b6eso2252248f8f.0 for <ffmpeg-devel@ffmpeg.org>; Sun, 08 Sep 2024 17:55:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725843355; x=1726448155; darn=ffmpeg.org; h=subject:date:from:to:message-id:in-reply-to:from:to:cc:subject:date :message-id:reply-to; bh=0pkpRiNYFP7WWqNoVWB5DuhMweHO/ZKfH6jYmCPst8c=; b=IIYrIhWh/qzw1a/mMNP2zlf2Uak/jy5HDeOjvIVZw4Sf/NxRTihhJKswJv8XhtKJKo ebsZ6wLFPdSOQ18ze4BXR4k6laS+zUKiqOHLr9xyI1wCmvHcYccGt8wEdtmkBAp5hUfR HtMgtcXm+3cyLKXhOwwKaFcVxzyZSVvVjuQIwkLn/LpS+rgYhU9Pd4SgX+zfCYtNF6H0 /0cnjD47L5iEBa44KN4LtFl2Ho56psloSbdoN/SUg5qCMtVEKfvApNvXJATXC/2/H5GP 22eLsOZGE1XadJ9HWTthBf4XaK/BYxzIICCJ/aIVXAj4whQlO8S1xKW+LtEiHW+uPqpU miDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725843355; x=1726448155; h=subject:date:from:to:message-id:in-reply-to:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=0pkpRiNYFP7WWqNoVWB5DuhMweHO/ZKfH6jYmCPst8c=; b=vjUJvAKFCbZaemme+zdlMzbSvRY6DFykbqAW44d5aHqBhsG5fxdS7rZw82KxQ4NnvH UC0CJ47H0iuxPM5tdvdDozkS9IiozsYqIsAmyIRqp6zhuR5F8bkNbUffNoIYXerMSnQL klOTP8A2FzB6B65kWXeA38mYpc/4TC/tggCO2M+c1iIykkT6A2l5iOEhw4drtY2eRUMB xGZfyKgnOxmoPo8P1g08ke4BVJZfS1+mGG7cdwaMKwZwuk20ICB1+/vx8OYs30j2wP4c 0uxaJMznROdvAYMtralcpyU0XdLZsX/Z5wyDaBqImQRrin9YBGBj221ljHjjtMY3YWrz cGNQ== X-Gm-Message-State: AOJu0Yw7HtlsT8HRrQTRhUriADTC0DGQZnE71RkUfXMGH5iGQSm1y03+ SpsTuh6St5oqxIDrTFrqZRbq6PtiQmBBdaihfaAkDzk0VWfpcuM3XCB0Aw== X-Received: by 2002:a05:6000:d8c:b0:371:8cc3:3995 with SMTP id ffacd0b85a97d-378896035a0mr5997374f8f.34.1725843355043; Sun, 08 Sep 2024 17:55:55 -0700 (PDT) Received: from localhost (p200300cccf1178009d94fda8472792f7.dip0.t-ipconnect.de. [2003:cc:cf11:7800:9d94:fda8:4727:92f7]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37895649728sm4583399f8f.16.2024.09.08.17.55.54 for <ffmpeg-devel@ffmpeg.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 08 Sep 2024 17:55:54 -0700 (PDT) In-Reply-To: <D41CE2FHUKJS.3JT42UG2S21VV@gmail.com> Message-Id: <D41CE2FHZUD4.1IKZAL44JIH0H@gmail.com> To: <ffmpeg-devel@ffmpeg.org> From: "Marvin Scholz" <epirat07@gmail.com> Date: Mon, 9 Sep 2024 02:47:18 +0200 Subject: [FFmpeg-devel] [PATCH 60/60] avfilter/drawutils: fix variable shadowing X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org> List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe> List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel> List-Post: <mailto:ffmpeg-devel@ffmpeg.org> List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help> List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe> Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org> X-TUID: 4mvSn+MKE3TT |
Series |
[FFmpeg-devel,01/60] fftools/ffmpeg_opt: fix variable shadowing
|
expand
|
diff --git a/libavfilter/drawutils.c b/libavfilter/drawutils.c index 95525d38b4..b29d3e565e 100644 --- a/libavfilter/drawutils.c +++ b/libavfilter/drawutils.c @@ -156,7 +156,6 @@ int ff_draw_init(FFDrawContext *draw, enum AVPixelFormat format, unsigned flags) void ff_draw_color(FFDrawContext *draw, FFDrawColor *color, const uint8_t rgba[4]) { - unsigned i; double yuvad[4]; double rgbad[4]; const AVPixFmtDescriptor *desc = draw->desc; @@ -190,7 +189,7 @@ void ff_draw_color(FFDrawContext *draw, FFDrawColor *color, const uint8_t rgba[4 if (desc->nb_components <= 2) yuvad[1] = yuvad[3]; - for (i = 0; i < desc->nb_components; i++) { + for (unsigned i = 0; i < desc->nb_components; i++) { unsigned val = yuvad[i] * ((1 << (draw->desc->comp[i].depth + draw->desc->comp[i].shift)) - 1) + 0.5; if (desc->comp[i].depth > 8) color->comp[desc->comp[i].plane].u16[desc->comp[i].offset / 2] = val;