[vlc-devel] [PATCH 04/13] codec/libmpeg2: narrow scope of iteration variable

Filip Roséen filip at atch.se
Thu Oct 13 18:06:54 CEST 2016


---
 modules/codec/libmpeg2.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/codec/libmpeg2.c b/modules/codec/libmpeg2.c
index 9e39c7f..f70ff3a 100644
--- a/modules/codec/libmpeg2.c
+++ b/modules/codec/libmpeg2.c
@@ -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 )
-- 
2.10.0



More information about the vlc-devel mailing list