Message ID | D41CE2FHUKJS.3JT42UG2S21VV@gmail.com |
---|---|
State | Accepted |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:9c4f:0:b0:48e:c0f8:d0de with SMTP id w15csp1356443vqu; Sun, 8 Sep 2024 17:55:13 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUl0IDJDPLVXFO5f7eTaekqnJxBOr3DvJu63K1mnSUNwiCyVgMg3lA/tfu+9aTJ1AY7TmvQ+0GczkmGcHZxxLqX@gmail.com X-Google-Smtp-Source: AGHT+IE56uJccv1lRv7c2ZuprR3OqBYL9NI9imndtshXT57kLN0cwBJxBj2G0ju/0V3ug9rKQhHV X-Received: by 2002:a17:907:3f87:b0:a8d:2624:1a85 with SMTP id a640c23a62f3a-a8d26242590mr133734766b.12.1725843313234; Sun, 08 Sep 2024 17:55:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725843313; cv=none; d=google.com; s=arc-20240605; b=D8wyVVmIDhTCJ2XPrJO0dWPtlM5W/ZpFfAZCaTIrkpGfYLmao6D09HF4DW7+i8ltOY JhEKnQgrRHC0aE2lxDN0S31D8fWhgUvCJjrskSBQMNHdbTp3OUrqV+qZW5+SlHdyS42r Wl4KFvJdDXqYrmz+jMn1wTFMhPcymMHl0ZXQjbNzLIMIuC1b//DAQ8xFBECC6brXuDUW DK8AuUgy5TXRutn7o/ADnJG/JMgKhiZNPJw88Yg67tr46aguQ9pFFj65aIViMry0UMEv tt1ix4Nf5YbERCMsWUxmy0YOVOt2PkFxLU4olEdefBOt6zWJ/1wDsGFH/KSz5qQW+D3B E40g== 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:dkim-signature :delivered-to; bh=qm0RqWFXNKtu8ArEz5yR4rvdf6ZXYgQSklxos/eNHpc=; fh=5IeVwzS1vbVKjIV8MP3mnmnRtZGb8uteQ9r4QD2keV0=; b=MyHmJSPuYaX5SGum+UUtKxzvocog2d/LToJtzMdNSNDLKU5HQMILEMHHC1DabIKN9J Qk96DQj+RoX9jS56I4MEnPbvU6zexVFQROMuOcTSCFHutV/8Q7OA+5mtWWK5HTgQeNE4 1LpSYC2BXg6B4G4R4kzla9MaddDx0zj+KF5y8/fvMGLuYGDOd8lOojEeSzOkTPyhbt6j Mirj+bDgaczoetCizCng9CRz4T041Pn0viixzw5G3dmG437BE6Wnc80yWNCCPB0b9HDQ nXG3VfQ0Y4ORlgJKpjhsxTp0vuzM+U+3e7gl6XtA3/t3zw4g1UTlwOBitNIffcWdHdUf eNwg==; 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=cXoY3Xqm; 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-a8d2584c6fcsi314935566b.87.2024.09.08.17.55.12; Sun, 08 Sep 2024 17:55:13 -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=cXoY3Xqm; 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 C286668DA21; Mon, 9 Sep 2024 03:55:08 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 4862168D9A5 for <ffmpeg-devel@ffmpeg.org>; Mon, 9 Sep 2024 03:55:02 +0300 (EEST) Received: by mail-wr1-f41.google.com with SMTP id ffacd0b85a97d-374bfc395a5so2139910f8f.0 for <ffmpeg-devel@ffmpeg.org>; Sun, 08 Sep 2024 17:55:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725843301; x=1726448101; darn=ffmpeg.org; h=subject:date:from:to:message-id:from:to:cc:subject:date:message-id :reply-to; bh=jcoTVLCdc2wIQRvRaRMj4i5mBZWqcNBdxfG7dZGA/nA=; b=cXoY3Xqmktnz3ZLqjTNkPYDC1OiYxjBzQWqOyqq++5fi4TmNw0UIGWp9y+F1BQOGEM 6DeJwu8HwlgZLkEjNHDatFw4s6aeqFk7hdU013RdpyK7L6eMqcZvvmyN5qVD5H8q5K5U OLviUwdYqpfPGlZ/JNsWfz+RJ2SCeemvYzImTbF9iKo03LAjFRqtUKZdQzOax1g/tqCn 9QSUb3tgPlecrYt/LIXW52EowLIUvsffoXivp/9wVV7dkf0vikgpoMuGgpKbbohEfBxa s5nDwrv1KUw3ddj3T4t3d98OdkrcD90rCy6HWxsxn22GAhNuKAjtNhQ51Uc7/2FjetQ5 UqQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725843301; x=1726448101; h=subject:date:from:to:message-id:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jcoTVLCdc2wIQRvRaRMj4i5mBZWqcNBdxfG7dZGA/nA=; b=W2BOr71ilCFnUDKMHJVXSpDeLzZWM7+d3atH0aRxXudXiRVeNXpar7CICTo2XMFgQV V6xj8KQ1bBGJ+e/ce/3MNCRoSCzYXLzWCkIXupm6Y2QkIHfsQAO512MLKd2CVdbW8GbJ aUhVRi4hpFppYH1lR7iSM8pfTB2EBthsvjvLZs+ChfG4EMr5UWu+Kq2N2xOHJJqx/XsW 6vy4C7aTe0l7COoeWufQOusVT0izuWfPplOBAErG9EqBO/YeVg0q9d1DH7MzdH7eZiQW jQGHgFNz83o8ZwBxguRq3v+jhp98PLy2DdIaQt/dQ2lf7GUFaeZlnjtxAJ9s/TpXH3PA 9IXg== X-Gm-Message-State: AOJu0Yyftoc6BuXUdhj3RoAjfYjPJ8MI5vNG/aTzYG0CyxfsE/x5fyeB RrBXEdMnOlHw5ckZ/HxHJMz8GA+CBZq80M4grd9OdMPECBfYV9TYjjksCQ== X-Received: by 2002:a5d:484b:0:b0:374:c25a:f580 with SMTP id ffacd0b85a97d-378885dd683mr5685746f8f.14.1725843301124; Sun, 08 Sep 2024 17:55:01 -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.00 for <ffmpeg-devel@ffmpeg.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 08 Sep 2024 17:55:00 -0700 (PDT) Message-Id: <D41CE2FHUKJS.3JT42UG2S21VV@gmail.com> To: <ffmpeg-devel@ffmpeg.org> From: "Marvin Scholz" <epirat07@gmail.com> Date: Sun, 8 Sep 2024 19:14:10 +0200 Subject: [FFmpeg-devel] [PATCH 01/60] fftools/ffmpeg_opt: 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: TOEc9345PUlW |
Series |
[FFmpeg-devel,01/60] fftools/ffmpeg_opt: fix variable shadowing
|
expand
|
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
Quoting Marvin Scholz (2024-09-08 19:14:10) > --- > fftools/ffmpeg_opt.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) Ok
On Sun, Sep 08, 2024 at 07:14:10PM +0200, Marvin Scholz wrote: > --- > fftools/ffmpeg_opt.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) btw, iam not sure its needed to post patches for things like shadow fixes. Maybe we can fix the shadowing stuff quicker without posting patches also as these are quite trivial (i mean the trivial ones only of course) thx [...]
diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c index 3cbf0795ac..1aa187f706 100644 --- a/fftools/ffmpeg_opt.c +++ b/fftools/ffmpeg_opt.c @@ -87,8 +87,6 @@ int recast_media = 0; static void uninit_options(OptionsContext *o) { - int i; - /* all OPT_SPEC and OPT_TYPE_STRING can be freed in generic way */ for (const OptionDef *po = options; po->name; po++) { void *dst; @@ -112,11 +110,11 @@ static void uninit_options(OptionsContext *o) av_freep(dst); } - for (i = 0; i < o->nb_stream_maps; i++) + for (int i = 0; i < o->nb_stream_maps; i++) av_freep(&o->stream_maps[i].linklabel); av_freep(&o->stream_maps); - for (i = 0; i < o->nb_attachments; i++) + for (int i = 0; i < o->nb_attachments; i++) av_freep(&o->attachments[i]); av_freep(&o->attachments);