From 3d33b8511ef4c836b92853befd0e55491d64cc3e Mon Sep 17 00:00:00 2001 From: Christophe Massiot Date: Fri, 9 Feb 2007 13:57:06 +0000 Subject: [PATCH] * modules/demux/ts.c: Fixed erroneous warning messages (reported by Bill May). --- 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 2a4c6ec38a..d3074334c8 100644 --- a/modules/demux/ts.c +++ b/modules/demux/ts.c @@ -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 ); -- 2.39.2