[vlc-devel] Minor adjustment to modules/demux/ts.c

Bill May wmay at cisco.com
Thu Feb 8 22:55:14 CET 2007


Hi, this patch is just for erroneous warning messages.  The discontinuity
indicator and random access indicator are not present if the len = 0
(this is correctly handled in GatherPES).

Thanks,
Bill May

Index: ts.c
===================================================================
--- ts.c        (revision 18734)
+++ ts.c        (working copy)
@@ -967,7 +967,7 @@
          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 );

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html



More information about the vlc-devel mailing list