Commit 2d59a460 authored by Francois Cartegnie's avatar Francois Cartegnie Committed by Felix Paul Kühne

demux: ts: fix cross program PCR regression

Signed-off-by: default avatarFelix Paul Kühne <fkuehne@videolan.org>
parent 277f1520
...@@ -2161,10 +2161,10 @@ static void PCRHandle( demux_t *p_demux, ts_pid_t *pid, block_t *p_bk ) ...@@ -2161,10 +2161,10 @@ static void PCRHandle( demux_t *p_demux, ts_pid_t *pid, block_t *p_bk )
p_sys->i_current_pcr = AdjustPCRWrapAround( p_demux, i_pcr ); p_sys->i_current_pcr = AdjustPCRWrapAround( p_demux, i_pcr );
/* Search program and set the PCR */ /* Search program and set the PCR */
int i_group = -1; for( int i = 0; i < p_sys->i_pmt; i++ )
for( int i = 0; i < p_sys->i_pmt && i_group < 0 ; i++ )
{ {
bool b_pmt_has_es = false; bool b_pmt_has_es = false;
int i_group = -1;
for( int i_prg = 0; i_prg < p_sys->pmt[i]->psi->i_prg; i_prg++ ) for( int i_prg = 0; i_prg < p_sys->pmt[i]->psi->i_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