Message ID | D41CE2FHYTBS.3QNAYFFEVHFBR@gmail.com |
---|---|
State | New |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:9c4f:0:b0:48e:c0f8:d0de with SMTP id w15csp1368459vqu; Sun, 8 Sep 2024 18:34:49 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWoLhHqnlSNMM5u7TDhK1BwRLkDiBrGCjR0fUbMoifySeoVvg/v46OJtQlXQeIQ6dvbcCfvnshBLbtdxeQ+5HMO@gmail.com X-Google-Smtp-Source: AGHT+IEVU9+ct+Mp1jV9W65g4HgzQbrOn6h1oZLYcTritbjM0LwoLEtpMXnnOmiJKyLviuk2fpTt X-Received: by 2002:a17:906:f588:b0:a8d:2624:1a87 with SMTP id a640c23a62f3a-a8d2624259bmr149523466b.14.1725845688800; Sun, 08 Sep 2024 18:34:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725845688; cv=none; d=google.com; s=arc-20240605; b=XooC2QBbIBeSCs3ksrwYzR7UKU8u2rqSLYo7nkMUJcB44dk3HMjgWOnij+caLpRF9a RQnzxkxCQbEmb0MDhiHThsggHQc5/iA1L9kXLruLTEK6vG/cCwHJFXmPkOKXJCQp2q2p NRANpn4n6/cWZic/OLAaE+3lsiYyA2Gx1RteO64gnVWAnVyAUuyDyJ0/r1fTzsgypKjN zTfryWA7Balvfu9KJGZddzem4MwUyZfEqfuFvKxc+/lUkz7Ib/hX16gVm0cTzIDsAwam QMxD0qDPHVeUGhz6Muv5zIvg/b9YZSpoD4WgJex5Z/7EaR4Ir+NAnaSi7TLenjsRmaTv B2hg== 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=4Oz+LmpJnyjSnhlm5fdQVJI+NqTNpVO7WYo+pZ4aR8g=; fh=5IeVwzS1vbVKjIV8MP3mnmnRtZGb8uteQ9r4QD2keV0=; b=ENuVoaUAR6woWOEk5bl6AcgEtgLDPX/Pg2ZjRqFk4ZY7pfww6rap8HKK2gQyLRDak/ L3/+HprGfVAKHYPljad53Fil2u8y1nEuJN/sdP8Cu7JW/BhuEppvs1NG0InqjE1rzUh8 KMD4McoRLRcEtUn/xMspj3wD/Dnf4qwUG+PR9NoWzVBCt79Q3C9+eDQlN7GTZG5Gl9a2 /ViXaezmWrblDJJiPPQP2LWuRZwQNWZF5alxf5Kmnj/LTZLd/vwQWK9P1Bhfia6+ITqM 3JM+B93wXcsUML3HkdTRH5YhhwuoRhe3tVQEf92EjAM+hc4iR1fkLETaccVA+PFTm+oY iuXA==; 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=hCxeF5a2; 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 a640c23a62f3a-a8d25c515aesi284212866b.342.2024.09.08.18.34.48; Sun, 08 Sep 2024 18:34:48 -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=hCxeF5a2; 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 DE84E68DE29; Mon, 9 Sep 2024 03:56:06 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0A7D368DD42 for <ffmpeg-devel@ffmpeg.org>; Mon, 9 Sep 2024 03:55:44 +0300 (EEST) Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-428e0d18666so33656095e9.3 for <ffmpeg-devel@ffmpeg.org>; Sun, 08 Sep 2024 17:55:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725843344; x=1726448144; darn=ffmpeg.org; h=subject:date:from:to:message-id:in-reply-to:from:to:cc:subject:date :message-id:reply-to; bh=SJOXBVmh7tCOoTkiCwFoVikjO7ZoESAssbyjtoW4Yww=; b=hCxeF5a2nT1F3k/C6E6xr6gj/ibQhTzGIhD134W3GlUKPmVVP0/btc4OxdSBwbhUZA 35h5TwFj2465JYR6RKhe/6cbQkdBNx79IqBc7sIvinFsq5JxMvEWxTYBor2h9tf6JbqJ dFNW+c3M/CvRAMevV4wRWagYr+Iivm4ibidvFqJwfJ9Pt8+rGVeZ7kwRiqh4kVpYxYxd wWy3ztqIrc35xNzboT4QKz86IkCTNLNE+bMmUAH/kB7K2Ee0lkIGujpSiy+rQmOjit7m 9zi4vEJiJMyFmgqhOyrb+Rsj5A7hCN+6yeQgs1tnxmfoVQ9IUo+xKQ0VXLGc20u9+496 utQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725843344; x=1726448144; h=subject:date:from:to:message-id:in-reply-to:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=SJOXBVmh7tCOoTkiCwFoVikjO7ZoESAssbyjtoW4Yww=; b=IVElClOQoQIPi3YxZgFOuLg0LId/k8y0zwvUSj/oPHJZALM6XhMaYRejo3Vg/3+uDb mLrKxQsXLgzzBgLwO9v5E5NM2Pt878+3ysbPPklu2PLCdrbTZgFH604vYxF0prGw/aDF nbE9m9o11LWRftNWZSnR03g3FZajJugrxaLBsoMABhutVNOf58eQ1mxTqCyZMETyLi9C 1GjSdTqRfCwLu2OU2n9XlEZ3JteLcgk8T7xe840o19c+51nXdwFnQVCajtByoAsAlgaW 1miGRGvn2yo6sZvZKoFw8pySqyfJKKgIu8vav0Q+SPWyYMTOIcWJI6Zt3ws4EaViee3Y xqeA== X-Gm-Message-State: AOJu0YzPhEiPUxeoJ4+tCEPi/oNi9PC8c1OawN5IoiymSvNvSmbu6saS pcTDuIm9N4p3DMrFb5O8+lekaHzT8wYaltlYafFUFXqdnMUyo6gEqi5vdw== X-Received: by 2002:adf:e242:0:b0:374:c2f5:38a4 with SMTP id ffacd0b85a97d-3788969fad5mr6614367f8f.51.1725843344283; Sun, 08 Sep 2024 17:55:44 -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.43 for <ffmpeg-devel@ffmpeg.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 08 Sep 2024 17:55:43 -0700 (PDT) In-Reply-To: <D41CE2FHUKJS.3JT42UG2S21VV@gmail.com> Message-Id: <D41CE2FHYTBS.3QNAYFFEVHFBR@gmail.com> To: <ffmpeg-devel@ffmpeg.org> From: "Marvin Scholz" <epirat07@gmail.com> Date: Mon, 9 Sep 2024 01:39:31 +0200 Subject: [FFmpeg-devel] [PATCH 47/60] avformat/yuv4mpegdec: 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: Yf4BnITFx1Re |
Series |
[FFmpeg-devel,01/60] fftools/ffmpeg_opt: fix variable shadowing
|
expand
|
diff --git a/libavformat/yuv4mpegdec.c b/libavformat/yuv4mpegdec.c index 2b66a1e596..61b5a9e17b 100644 --- a/libavformat/yuv4mpegdec.c +++ b/libavformat/yuv4mpegdec.c @@ -36,7 +36,7 @@ static int yuv4_read_header(AVFormatContext *s) char header[MAX_YUV4_HEADER + 10]; // Include headroom for // the longest option char *tokstart, *tokend, *header_end; - int i; + size_t i; AVIOContext *pb = s->pb; int width = -1, height = -1, raten = 0, rated = 0, aspectn = 0, aspectd = 0; @@ -197,7 +197,7 @@ static int yuv4_read_header(AVFormatContext *s) }; // Older nonstandard pixel format representation tokstart += 6; - for (size_t i = 0; i < FF_ARRAY_ELEMS(pix_fmt_array); i++) + for (i = 0; i < FF_ARRAY_ELEMS(pix_fmt_array); i++) if (av_strstart(tokstart, pix_fmt_array[i].name, NULL)) { alt_pix_fmt = pix_fmt_array[i].pix_fmt; break;