From: Christophe Massiot Date: Tue, 27 Apr 2004 17:56:39 +0000 (+0000) Subject: * modules/demux/ts.c: Fixed an infinite loop in PATCallBack. X-Git-Tag: 0.7.2~223 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=674ba4780eb65ff17599fb6cd1af754c61e27b55;p=vlc * modules/demux/ts.c: Fixed an infinite loop in PATCallBack. --- diff --git a/modules/demux/ts.c b/modules/demux/ts.c index 2b2d39472d..cb669cb53e 100644 --- a/modules/demux/ts.c +++ b/modules/demux/ts.c @@ -1785,7 +1785,7 @@ static void PATCallBack( demux_t *p_demux, dvbpsi_pat_t *p_pat ) demux_sys_t *p_sys = p_demux->p_sys; dvbpsi_pat_program_t *p_program; ts_pid_t *pat = &p_sys->pid[0]; - int i; + int i, j; msg_Dbg( p_demux, "PATCallBack called" ); @@ -1831,9 +1831,9 @@ static void PATCallBack( demux_t *p_demux, dvbpsi_pat_t *p_pat ) ts_pid_t *pid = &p_sys->pid[i]; if( pid->b_valid && !pid->psi ) { - for( i = 0; i < i_pmt_rm; i++ ) + for( j = 0; j < i_pmt_rm; j++ ) { - if( pid->p_owner->i_pid_pcr == pmt_rm[i]->i_pid && pid->es->id ) + if( pid->p_owner->i_pid_pcr == pmt_rm[j]->i_pid && pid->es->id ) { /* We only remove es that aren't defined by extra pmt */ PIDClean( p_demux->out, pid );