]> git.sesse.net Git - vlc/commitdiff
* modules/demux/ts.c: Fixed erroneous warning messages (reported by
authorChristophe Massiot <massiot@videolan.org>
Fri, 9 Feb 2007 13:57:06 +0000 (13:57 +0000)
committerChristophe Massiot <massiot@videolan.org>
Fri, 9 Feb 2007 13:57:06 +0000 (13:57 +0000)
   Bill May).

modules/demux/ts.c

index 2a4c6ec38a2e88fd99e5dd6311937a67368f77a7..d3074334c82f77426845f5b3ff2d68a661559ac5 100644 (file)
@@ -967,7 +967,7 @@ static int DemuxFile( demux_t *p_demux )
         p_pid = &p_sys->pid[ ((p_buffer[i_pos+1]&0x1f)<<8)|p_buffer[i_pos+2] ];
 
         /* Detect discontinuity indicator in adaptation field */
-        if( b_adaptation )
+        if( b_adaptation && p_buffer[i_pos + 4] > 0 )
         {
             if( p_buffer[i_pos+5]&0x80 )
                 msg_Warn( p_demux, "discontinuity indicator (pid=%d) ", p_pid->i_pid );