Commit 4ab1ae0f authored by Francois Cartegnie's avatar Francois Cartegnie

demux: ts: fix program cross PCR regression

parent 42dcbd6a
......@@ -2741,9 +2741,9 @@ static void PCRHandle( demux_t *p_demux, ts_pid_t *pid, block_t *p_bk )
p_sys->i_current_pcr = i_pcr;
/* Search program and set the PCR */
int i_group = -1;
for( int i = 0; i < p_sys->i_pmt && i_group < 0 ; i++ )
for( int i = 0; i < p_sys->i_pmt; i++ )
{
int i_group = -1;
for( int i_prg = 0; i_prg < p_sys->pmt[i]->psi->i_prg; i_prg++ )
{
ts_prg_psi_t *p_prg = p_sys->pmt[i]->psi->prg[i_prg];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment