[vlc-devel] [PATCH 05/13] codec/opus: narrow scope of iteration variable
Filip Roséen
filip at atch.se
Thu Oct 13 18:06:55 CEST 2016
---
modules/codec/opus.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/modules/codec/opus.c b/modules/codec/opus.c
index dba885d..e7e2384 100644
--- a/modules/codec/opus.c
+++ b/modules/codec/opus.c
@@ -472,8 +472,7 @@ static block_t *DecodePacket( decoder_t *p_dec, ogg_packet *p_oggpacket,
{
float gain = pow(10., p_sys->header.gain/5120.);
float *buf =(float *)p_aout_buffer->p_buffer;
- int i;
- for( i = 0; i < i_nb_samples*p_sys->header.channels; i++)
+ for( int i = 0; i < i_nb_samples*p_sys->header.channels; i++)
buf[i] *= gain;
}
#endif
--
2.10.0
More information about the vlc-devel
mailing list