[vlc-devel] [PATCH 10/13] codec/twolame: narrow scope of iteration	variable
    Filip Roséen 
    filip at atch.se
       
    Thu Oct 13 18:07:00 CEST 2016
    
    
  
---
 modules/codec/twolame.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/modules/codec/twolame.c b/modules/codec/twolame.c
index 6fdad11..7538b32 100644
--- a/modules/codec/twolame.c
+++ b/modules/codec/twolame.c
@@ -184,8 +184,7 @@ static int OpenEncoder( vlc_object_t *p_this )
     }
     else
     {
-        int i;
-        for ( i = 1; i < 14; i++ )
+        for ( int i = 1; i < 14; i++ )
         {
             if ( p_enc->fmt_out.i_bitrate / 1000
                   <= mpa_bitrate_tab[i_frequency / 3][i] )
-- 
2.10.0
    
    
More information about the vlc-devel
mailing list