[vlc-commits] vout_new_buffer: fix signed / unsigned comparison

Rafaël Carré git at videolan.org
Sun Dec 4 06:22:27 CET 2011


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Sun Dec  4 00:06:36 2011 -0500| [780203a14a82054a6a784711bd6d6b19e6a9d4bc] | committer: Rafaël Carré

vout_new_buffer: fix signed / unsigned comparison

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

 src/input/decoder.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index fe95bb7..891645f 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -2337,7 +2337,7 @@ static picture_t *vout_new_buffer( decoder_t *p_dec )
         if( vlc_fourcc_IsYUV( fmt.i_chroma ) )
         {
             const vlc_chroma_description_t *dsc = vlc_fourcc_GetChromaDescription( fmt.i_chroma );
-            for( int i = 0; dsc && i < dsc->plane_count; i++ )
+            for( unsigned int i = 0; dsc && i < dsc->plane_count; i++ )
             {
                 while( fmt.i_width % dsc->p[i].w.den )
                     fmt.i_width++;



More information about the vlc-commits mailing list