[vlc-devel] [PATCH 03/13] codec/flac: narrow scope of iteration variable

Filip Roséen filip at atch.se
Thu Oct 13 18:06:53 CEST 2016


---
 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];
     }
-- 
2.10.0



More information about the vlc-devel mailing list