diff mbox series

[FFmpeg-devel,32/60] avcodec/dvdec: fix variable shadowing

Message ID D41CE2FHXFY0.3JQ5WMJQXYGUG@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:33 p.m. UTC
---
 libavcodec/dvdec.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

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];