diff mbox series

[FFmpeg-devel,33/60] avcodec/dv_tablegen: fix variable shadowing

Message ID D41CE2FHXKKO.1F890ENFA4SDT@gmail.com
State New
Headers show
Series [FFmpeg-devel,01/60] fftools/ffmpeg_opt: fix variable shadowing | expand

Commit Message

Marvin Scholz Sept. 8, 2024, 10:35 p.m. UTC
---
 libavcodec/dv_tablegen.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/libavcodec/dv_tablegen.h b/libavcodec/dv_tablegen.h
index 7f0ab53fa7..6d3e200a01 100644
--- a/libavcodec/dv_tablegen.h
+++ b/libavcodec/dv_tablegen.h
@@ -51,7 +51,7 @@  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 i, j;
+    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]);
@@ -70,7 +70,7 @@  static av_cold void dv_vlc_map_tableinit(void)
         dv_vlc_map[ff_dv_vlc_run[i]][ff_dv_vlc_level[i]].size =
             ff_dv_vlc_len[i]   + (!!ff_dv_vlc_level[i]);
     }
-    for (i = 0; i < DV_VLC_MAP_RUN_SIZE; i++) {
+    for (int i = 0; i < DV_VLC_MAP_RUN_SIZE; i++) {
 #if CONFIG_SMALL
         for (j = 1; j < DV_VLC_MAP_LEV_SIZE; j++) {
             if (dv_vlc_map[i][j].size == 0) {