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

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


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

codec/twolame: 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=455cabc07b3a71f6c3ab4ce9cee41103441a10d3
---

 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] )



More information about the vlc-commits mailing list