Message ID | D41CE2FHXNNS.UT7QWTGXAK6S@gmail.com |
---|---|
State | New |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:9c4f:0:b0:48e:c0f8:d0de with SMTP id w15csp1388030vqu; Sun, 8 Sep 2024 19:54:16 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXln2uWI4n46MA9hfJ46MxuQlFf/hx5xwGZsZxJOY5S2Cju1MDqlNZvYH3AIBw5004TTFQ3rVjSbWPG5nhw5+tJ@gmail.com X-Google-Smtp-Source: AGHT+IH3DVa6xfg8KyZPNhYCzZ7sa6rDr/h/v25mpDNAmlsoKEAyWo4ThwVlZwG/CYORcMlFkFLL X-Received: by 2002:a05:6512:b9d:b0:52f:76:c258 with SMTP id 2adb3069b0e04-5365880faefmr2964651e87.8.1725850456112; Sun, 08 Sep 2024 19:54:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725850456; cv=none; d=google.com; s=arc-20240605; b=Fq2Kr7mxcZb+6EIHnLUaNDzY/gS6KL/dbx1U4ZSpFvRdilvQ7HmKqqXoMRBpI7fCc9 gkMd6z2gNH05DYsoXI6XdCs+A6HFU9GnbsYjd/jJV+4oe1QTWtZaQNbdwhZsjc2l2puJ ij0SBe9Q/t9PLCj3XMs73J5AmymzKqCjJrbSsnDI2xDizLE1esKn1i0rw+6UZvIOt+d2 tQKE8OzEoKlf1HyyUvjWod5DW0him/HZlNzkCe5yu6zIDin3k4fVPPIPReT5m0xmrqkC /035MB/s7DAm7GBHSiXFKVItgdaXvm7STqI/qTtR5Y3X6HCAqsG5AivrQqeqaGkvV/Ip KAxQ== 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=BuiFuhJoE7DjFZx/6nkw0PduIqEctgJ2DbaWf6WrA3Y=; fh=5IeVwzS1vbVKjIV8MP3mnmnRtZGb8uteQ9r4QD2keV0=; b=Api2ZIR6EOyzEIeLVv6D+0Db3zW7SY/SiWOQrKzfH8wftUzhvfLqtHtWA+06Yj0wcB YE8jtvkOfkWw+TiNEXudGhB+hhOAZODhMhx/xeYw3BoyPfsCFz+DF+mA9gHeuvpD6msi YbJVIviBrKpopwTN/PPvul9bFrmDOphCeGHdR1nOMbLkCF6j+zwqhwpRhKlsdPf0t0Nt ZWUDQMW9oc9TZeNHBCX1cXzFYBN5Rl622730XH+HUKduM3DGjfpQ+ye/s6oS7laM4JhK YiluXtB5L2iF2/xPNdFSCfDjReemrrxgAGueRl55AZO5bOjFUMSn+9M38oCNLF8q3NfV R2Fw==; 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="LP/Buhz2"; 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-5365f866286si1322276e87.29.2024.09.08.19.54.15; Sun, 08 Sep 2024 19:54:16 -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="LP/Buhz2"; 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 3266968DD9C; Mon, 9 Sep 2024 03:55:52 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 07ED868DC90 for <ffmpeg-devel@ffmpeg.org>; Mon, 9 Sep 2024 03:55:33 +0300 (EEST) Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-374c180d123so2051572f8f.3 for <ffmpeg-devel@ffmpeg.org>; Sun, 08 Sep 2024 17:55:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725843333; x=1726448133; darn=ffmpeg.org; h=subject:date:from:to:message-id:in-reply-to:from:to:cc:subject:date :message-id:reply-to; bh=aAY8uVAZL/JCOpcj4/VJ6V3MCJQ25uwE8BYA5Y2hJo0=; b=LP/Buhz24JlLDSX+jEQA3Zmsz8ExSeIgYCVoLtclwNsiKd4CDcTpBamXmW61wQ5Sz/ Pk74OpYrSv1RM3zPXxYAF+fi7tUH6lBfaGfhKAd5WE+RDIr1/GSsJXgbwFSfsW9fTUDf n8M0XbexZ/FoPAEeMXL+//lV2gUG8ISyiqfZZeDuSz2vRsU+PYPErsTCifhcMizXq6cT RP9b+Ze5mqrGvcJC9Nxo+SgG2jB5S5ycTsCjUhW+KorDvwbVXyZoCJPzh//GUz13f3Oa sxbDZFATXsZIqLcXfyztEGVZlEyb34G1WawXEDyMDekwfE5sTpKBc6TJwPmq1HlpQekg 0cMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725843333; x=1726448133; h=subject:date:from:to:message-id:in-reply-to:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=aAY8uVAZL/JCOpcj4/VJ6V3MCJQ25uwE8BYA5Y2hJo0=; b=SqagiASURQDyGP0HCOGb5ALOTFqgM+i6lnxl5YXlcJBZ3QpALRtVQIQ8iyLLKmbELw vaJpqm667b9GOmPr9fPFF27C6hCgiPXJ/NrdZwoG9WIdpcck2WDvQhGwnCjW3aBIf+3R 9MmLe2RpYSZKOPHeDQru479PALAAMYGyHg9TTBvnuLEKs6ypaXY5Mx+mTxhs5IfOR7f/ kwCAoBCHzwjJ9SI+iK8wXGzPyBLDJLse/HCukibRqjadNB01F6a4ktPbwj23SY0MFyol ejcueIcSbiMhyLytBa2Q6NanBF8Z8MDql4qXOjED1wcS69pPEjSbf/hb84VbBgxCM/A4 Fd8g== X-Gm-Message-State: AOJu0Yz9jYDCTrZ3oT2V42Xh/i+EVAx4RwXfcO6pWpj3mAYX+mSnb29e x7/i810ja7meWOX+MHMNravqFh+q3R1rhbINjoWTmPsFXevRzxucJ/D7+A== X-Received: by 2002:a05:6000:1286:b0:374:ba83:8d73 with SMTP id ffacd0b85a97d-378949ef80cmr2866043f8f.8.1725843333321; Sun, 08 Sep 2024 17:55:33 -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.32 for <ffmpeg-devel@ffmpeg.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 08 Sep 2024 17:55:32 -0700 (PDT) In-Reply-To: <D41CE2FHUKJS.3JT42UG2S21VV@gmail.com> Message-Id: <D41CE2FHXNNS.UT7QWTGXAK6S@gmail.com> To: <ffmpeg-devel@ffmpeg.org> From: "Marvin Scholz" <epirat07@gmail.com> Date: Mon, 9 Sep 2024 00:36:34 +0200 Subject: [FFmpeg-devel] [PATCH 34/60] avcodec/dv_tablegen: narrow variable scope 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: OVZeFUCs3heb |
Series |
[FFmpeg-devel,01/60] fftools/ffmpeg_opt: fix variable shadowing
|
expand
|
diff --git a/libavcodec/dv_tablegen.h b/libavcodec/dv_tablegen.h index 6d3e200a01..ee604b1cfe 100644 --- a/libavcodec/dv_tablegen.h +++ b/libavcodec/dv_tablegen.h @@ -51,7 +51,6 @@ static struct dv_vlc_pair dv_vlc_map[DV_VLC_MAP_RUN_SIZE][DV_VLC_MAP_LEV_SIZE]; static av_cold void dv_vlc_map_tableinit(void) { uint32_t code = 0; - int j; for (int i = 0; i < NB_DV_VLC; i++) { uint32_t cur_code = code >> (32 - ff_dv_vlc_len[i]); code += 1U << (32 - ff_dv_vlc_len[i]); @@ -72,7 +71,7 @@ static av_cold void dv_vlc_map_tableinit(void) } for (int i = 0; i < DV_VLC_MAP_RUN_SIZE; i++) { #if CONFIG_SMALL - for (j = 1; j < DV_VLC_MAP_LEV_SIZE; j++) { + for (int j = 1; j < DV_VLC_MAP_LEV_SIZE; j++) { if (dv_vlc_map[i][j].size == 0) { dv_vlc_map[i][j].vlc = dv_vlc_map[0][j].vlc | (dv_vlc_map[i - 1][0].vlc << @@ -82,7 +81,7 @@ static av_cold void dv_vlc_map_tableinit(void) } } #else - for (j = 1; j < DV_VLC_MAP_LEV_SIZE / 2; j++) { + for (int j = 1; j < DV_VLC_MAP_LEV_SIZE / 2; j++) { if (dv_vlc_map[i][j].size == 0) { dv_vlc_map[i][j].vlc = dv_vlc_map[0][j].vlc | (dv_vlc_map[i - 1][0].vlc <<