[FFmpeg-devel] [PATCH 32/60] avcodec/dvdec: fix variable shadowing
Marvin Scholz
epirat07 at gmail.com
Mon Sep 9 01:33:47 EEST 2024
---
libavcodec/dvdec.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/dvdec.c b/libavcodec/dvdec.c
index 8297b6d2f3..7ca891e93a 100644
--- a/libavcodec/dvdec.c
+++ b/libavcodec/dvdec.c
@@ -155,10 +155,10 @@ static av_cold void dv_init_static(void)
VLC dv_vlc = { .table = vlc_buf, .table_allocated = FF_ARRAY_ELEMS(vlc_buf) };
const unsigned offset = FF_ARRAY_ELEMS(dv_rl_vlc) - (2 * NB_DV_VLC - NB_DV_ZERO_LEVEL_ENTRIES);
RL_VLC_ELEM *tmp = dv_rl_vlc + offset;
- int i, j;
+ int j = 0;
/* it's faster to include sign bit in a generic VLC parsing scheme */
- for (i = 0, j = 0; i < NB_DV_VLC; i++, j++) {
+ for (int i = 0; i < NB_DV_VLC; i++, j++) {
tmp[j].len = ff_dv_vlc_len[i];
tmp[j].run = ff_dv_vlc_run[i];
tmp[j].level = ff_dv_vlc_level[i];
--
2.39.3 (Apple Git-146)
More information about the ffmpeg-devel
mailing list