[vlc-commits] codec/opus: narrow scope of iteration variable
Filip Roséen
git at videolan.org
Thu Oct 13 18:27:52 CEST 2016
vlc | branch: master | Filip Roséen <filip at atch.se> | Thu Oct 13 18:06:55 2016 +0200| [1aa9e9771678082562bf951ae47cd7f57a0e4da8] | committer: Jean-Baptiste Kempf
codec/opus: 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=1aa9e9771678082562bf951ae47cd7f57a0e4da8
---
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
More information about the vlc-commits
mailing list