[vlc-commits] codec/flac: 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:53 2016 +0200| [eb8fac6b17c5e787ff289075979de495d2399124] | committer: Jean-Baptiste Kempf
codec/flac: 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=eb8fac6b17c5e787ff289075979de495d2399124
---
modules/codec/flac.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/modules/codec/flac.c b/modules/codec/flac.c
index a308cb4..504b0fa 100644
--- a/modules/codec/flac.c
+++ b/modules/codec/flac.c
@@ -744,7 +744,6 @@ static block_t *Encode( encoder_t *p_enc, block_t *p_aout_buf )
{
encoder_sys_t *p_sys = p_enc->p_sys;
block_t *p_chain;
- unsigned int i;
/* FIXME: p_aout_buf is NULL when it's time to flush*/
if( unlikely( !p_aout_buf ) ) return NULL;
@@ -763,7 +762,7 @@ static block_t *Encode( encoder_t *p_enc, block_t *p_aout_buf )
p_sys->i_buffer = p_aout_buf->i_buffer * 2;
}
- for( i = 0 ; i < p_aout_buf->i_buffer / 2 ; i++ )
+ for( unsigned i = 0 ; i < p_aout_buf->i_buffer / 2 ; i++ )
{
p_sys->p_buffer[i]= ((int16_t *)p_aout_buf->p_buffer)[i];
}
More information about the vlc-commits
mailing list