vlc | branch: master | Filip Roséen <fi...@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 <j...@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 )

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to