[vlc-devel] [PATCH 11/13] codec/vorbis: narrow scope of iteration variable + clean-up
Filip Roséen
filip at atch.se
Thu Oct 13 18:07:01 CEST 2016
---
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 )
--
2.10.0
More information about the vlc-devel
mailing list