[vlc-commits] TS demux: use unsigned type for array offset

Rafaël Carré git at videolan.org
Fri May 9 18:08:41 CEST 2014


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Fri May  9 10:46:52 2014 +0200| [5de00be18b7e53ba1b7df6d8062e186b05f5df15] | committer: Rafaël Carré

TS demux: use unsigned type for array offset

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

 modules/demux/ts.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index 8324b90..eed67b8 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -1763,7 +1763,7 @@ static void ParseTableSection( demux_t *p_demux, ts_pid_t *pid, block_t *p_data
             if( p_content->i_buffer > 9 && p_content->p_buffer[0] == 0xc6 )
             {
                 int i_index = 0;
-                int i_offset = 4;
+                size_t i_offset = 4;
                 if( p_content->p_buffer[3] & 0x40 )
                 {
                     i_index = ((p_content->p_buffer[7] & 0x0f) << 8) |



More information about the vlc-commits mailing list