[vlc-devel] commit: ts: Fix some signess comparison issue. (Pierre d'Herbemont )

git version control git at videolan.org
Fri Aug 21 01:05:59 CEST 2009


vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Fri Aug 21 00:46:44 2009 +0200| [075a0175cebbef3782e067e6a1b2d2655f702d0f] | committer: Pierre d'Herbemont 

ts: Fix some signess comparison issue.

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

 modules/demux/ts.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index 1f824b4..f1a3b65 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -1618,8 +1618,8 @@ static void ParsePES( demux_t *p_demux, ts_pid_t *pid )
 {
     block_t *p_pes = pid->es->p_pes;
     uint8_t header[34];
-    int     i_pes_size = 0;
-    int     i_skip = 0;
+    unsigned i_pes_size = 0;
+    unsigned i_skip = 0;
     mtime_t i_dts = -1;
     mtime_t i_pts = -1;
     mtime_t i_length = 0;
@@ -3198,12 +3198,12 @@ static void PMTSetupEsTeletext( demux_t *p_demux, ts_pid_t *pid,
     es_format_t *p_fmt = &pid->es->fmt;
 
     ts_teletext_page_t p_page[2 * 64 + 20];
-    int i_page = 0;
+    unsigned i_page = 0;
 
     /* Gather pages informations */
 #if defined _DVBPSI_DR_56_H_ && \
     defined DVBPSI_VERSION && DVBPSI_VERSION_INT > ((0<<16)+(1<<8)+5)
-    for( int i_tag_idx = 0; i_tag_idx < 2; i_tag_idx++ )
+    for( unsigned i_tag_idx = 0; i_tag_idx < 2; i_tag_idx++ )
     {
         dvbpsi_descriptor_t *p_dr = PMTEsFindDescriptor( p_es, i_tag_idx == 0 ? 0x46 : 0x56 );
         if( !p_dr )
@@ -3295,7 +3295,7 @@ static void PMTSetupEsTeletext( demux_t *p_demux, ts_pid_t *pid,
     }
     else
     {
-        for( int i = 0; i < i_page; i++ )
+        for( unsigned i = 0; i < i_page; i++ )
         {
             ts_es_t *p_es;
 




More information about the vlc-devel mailing list