]> git.sesse.net Git - vlc/commitdiff
Fixed compiler waring about signed - unsigned comparision. It is always safer to...
authorJean-Paul Saman <jpsaman@videolan.org>
Sat, 6 Dec 2003 22:50:08 +0000 (22:50 +0000)
committerJean-Paul Saman <jpsaman@videolan.org>
Sat, 6 Dec 2003 22:50:08 +0000 (22:50 +0000)
modules/access_output/http.c
modules/codec/vorbis.c

index f0a315e58e32c701bb496d1eb3cda2e3a279d72e..d46ced6886f75b052a3c4fb7f50887a28d65a341 100644 (file)
@@ -2,7 +2,7 @@
  * http.c
  *****************************************************************************
  * Copyright (C) 2001-2003 VideoLAN
- * $Id: http.c,v 1.7 2003/08/25 01:33:25 fenrir Exp $
+ * $Id: http.c,v 1.8 2003/12/06 22:50:08 jpsaman Exp $
  *
  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
  *
@@ -298,7 +298,7 @@ static int Write( sout_access_out_t *p_access, sout_buffer_t *p_buffer )
                 p_sys->i_header_size = 0;
                 p_sys->b_header_complete = VLC_FALSE;
             }
-            if( p_buffer->i_size + p_sys->i_header_size > p_sys->i_header_allocated )
+            if( (int)(p_buffer->i_size + p_sys->i_header_size) > p_sys->i_header_allocated )
             {
                 p_sys->i_header_allocated = p_buffer->i_size + p_sys->i_header_size + 1024;
                 p_sys->p_header = realloc( p_sys->p_header, p_sys->i_header_allocated );
index aa8fd8af7c707f0a88939238fe800c16890ba01e..6b8ac878a12d86e4c6a656f5fd9774b2fa77e5c9 100644 (file)
@@ -2,7 +2,7 @@
  * vorbis.c: vorbis decoder/encoder/packetizer module making use of libvorbis.
  *****************************************************************************
  * Copyright (C) 2001-2003 VideoLAN
- * $Id: vorbis.c,v 1.25 2003/11/23 15:50:07 gbazin Exp $
+ * $Id: vorbis.c,v 1.26 2003/12/06 22:50:08 jpsaman Exp $
  *
  * Authors: Gildas Bazin <gbazin@netcourrier.com>
  *
@@ -642,7 +642,8 @@ static block_t *Encode( encoder_t *p_enc, aout_buffer_t *p_aout_buf )
     ogg_packet oggpacket;
     block_t *p_block, *p_chain = NULL;
     float **buffer;
-    int i, j;
+    int i;
+    unsigned int j;
 
     p_sys->i_pts = p_aout_buf->start_date -
                 (mtime_t)1000000 * (mtime_t)p_sys->i_samples_delay /