[vlc-commits] codec/vorbis: narrow scope of iteration variable + clean-up

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:01 2016 +0200| [0b5facc08e0f3b61b548a171ff61dcec477ff423] | committer: Jean-Baptiste Kempf

codec/vorbis: narrow scope of iteration variable + clean-up

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

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

 modules/codec/vorbis.c | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/modules/codec/vorbis.c b/modules/codec/vorbis.c
index c637869..0ce0e26 100644
--- a/modules/codec/vorbis.c
+++ b/modules/codec/vorbis.c
@@ -678,14 +678,10 @@ static void ConfigureChannelOrder(uint8_t *pi_chan_table, int i_channels,
             pi_channels_in = pi_3channels_in;
             break;
         default:
-            {
-                int i;
-                for( i = 0; i< i_channels; ++i )
-                {
-                    pi_chan_table[i] = i;
-                }
-                return;
-            }
+            for( int i = 0; i< i_channels; ++i )
+                pi_chan_table[i] = i;
+
+            return;
     }
 
     if( b_decode )



More information about the vlc-commits mailing list