[vlc-commits] Faad: Fix wrong variable type

Jean-Baptiste Kempf git at videolan.org
Sun Jul 29 20:37:45 CEST 2012


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Jul 29 08:48:26 2012 +0200| [2e1df2f4ce62b4c31987dd57c76d8a23183ea88f] | committer: Jean-Baptiste Kempf

Faad: Fix wrong variable type

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2e1df2f4ce62b4c31987dd57c76d8a23183ea88f
---

 modules/codec/faad.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/codec/faad.c b/modules/codec/faad.c
index a4c397f..42b9554 100644
--- a/modules/codec/faad.c
+++ b/modules/codec/faad.c
@@ -315,7 +315,6 @@ static block_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
         void *samples;
         faacDecFrameInfo frame;
         block_t *p_out;
-        int i, j;
 
         samples = faacDecDecode( p_sys->hfaad, &frame,
                                  p_sys->p_buffer, p_sys->i_buffer );
@@ -434,7 +433,8 @@ static block_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
         /* Convert frame.channel_position to our own channel values */
         p_dec->fmt_out.audio.i_physical_channels = 0;
         const uint32_t nbChannels = frame.channels;
-        for( i = 0; i < nbChannels; i++ )
+        unsigned j;
+        for( unsigned i = 0; i < nbChannels; i++ )
         {
             /* Find the channel code */
             for( j = 0; j < MAX_CHANNEL_POSITIONS; j++ )



More information about the vlc-commits mailing list