[vlc-commits] codec/libmpeg2: narrow scope of iteration variable

Filip Roséen git at videolan.org
Thu Oct 13 18:27:52 CEST 2016


vlc | branch: master | Filip Roséen <filip at atch.se> | Thu Oct 13 18:06:54 2016 +0200| [db4b3639f02feff8637aec1d83c8ae78ebae3d4b] | committer: Jean-Baptiste Kempf

codec/libmpeg2: narrow scope of iteration variable

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=db4b3639f02feff8637aec1d83c8ae78ebae3d4b
---

 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 )



More information about the vlc-commits mailing list