[vlc-commits] avcodec: fix variable shadowing
Rémi Denis-Courmont
git at videolan.org
Sun Jul 23 16:53:14 CEST 2017
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jul 23 16:39:08 2017 +0300| [2862ffacbb3693f4bf6e86edbb2d513e19f46907] | committer: Rémi Denis-Courmont
avcodec: fix variable shadowing
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2862ffacbb3693f4bf6e86edbb2d513e19f46907
---
modules/codec/avcodec/video.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 506d15a209..1e964bf8a4 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -1248,7 +1248,7 @@ void EndVideoDec( vlc_object_t *obj )
static void ffmpeg_InitCodec( decoder_t *p_dec )
{
decoder_sys_t *p_sys = p_dec->p_sys;
- int i_size = p_dec->fmt_in.i_extra;
+ size_t i_size = p_dec->fmt_in.i_extra;
if( !i_size ) return;
@@ -1275,8 +1275,8 @@ static void ffmpeg_InitCodec( decoder_t *p_dec )
while( psz < &p[p_sys->p_context->extradata_size - 8] )
{
- int i_size = GetDWBE( psz );
- if( i_size <= 1 )
+ uint_fast32_t atom_size = GetDWBE( psz );
+ if( atom_size <= 1 )
{
/* FIXME handle 1 as long size */
break;
@@ -1288,7 +1288,7 @@ static void ffmpeg_InitCodec( decoder_t *p_dec )
break;
}
- psz += i_size;
+ psz += atom_size;
}
}
}
More information about the vlc-commits
mailing list