codec/libmpeg2: narrow scope of iteration variable
authorFilip Roséen <filip@atch.se>
Thu, 13 Oct 2016 16:06:54 +0000 (18:06 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 13 Oct 2016 16:27:35 +0000 (18:27 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/codec/libmpeg2.c

index 9e39c7f..f70ff3a 100644 (file)
@@ -683,9 +683,8 @@ static block_t *GetCc( decoder_t *p_dec, bool pb_present[4] )
 {
     decoder_sys_t   *p_sys = p_dec->p_sys;
     block_t         *p_cc = NULL;
-    int i;
 
-    for( i = 0; i < 4; i++ )
+    for( int i = 0; i < 4; i++ )
         pb_present[i] = p_sys->cc.pb_present[i];
 
     if( p_sys->cc.i_data <= 0 )