[FFmpeg-devel] [PATCH 33/60] avcodec/dv_tablegen: fix variable shadowing
Marvin Scholz
epirat07 at gmail.com
Mon Sep 9 01:35:24 EEST 2024
---
libavcodec/dv_tablegen.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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) {
--
2.39.3 (Apple Git-146)
More information about the ffmpeg-devel
mailing list