Commit 880d2ee8 authored by Rafaël Carré's avatar Rafaël Carré

TS Demux: PCRHandle(): simplify

parent 089af106
......@@ -1944,18 +1944,15 @@ static void PCRHandle( demux_t *p_demux, ts_pid_t *pid, block_t *p_bk )
return;
mtime_t i_pcr = GetPCR( p_bk );
if( i_pcr >= 0 )
{
if( i_pcr < 0 )
return;
if( p_sys->i_pid_ref_pcr == pid->i_pid )
{
p_sys->i_current_pcr = AdjustPCRWrapAround( p_demux, i_pcr );
}
/* Search program and set the PCR */
for( int i = 0; i < p_sys->i_pmt; i++ )
{
for( int i_prg = 0; i_prg < p_sys->pmt[i]->psi->i_prg; i_prg++ )
{
if( pid->i_pid == p_sys->pmt[i]->psi->prg[i_prg]->i_pid_pcr )
{
p_sys->pmt[i]->psi->prg[i_prg]->i_pcr_value = i_pcr;
......@@ -1963,9 +1960,6 @@ static void PCRHandle( demux_t *p_demux, ts_pid_t *pid, block_t *p_bk )
(int)p_sys->pmt[i]->psi->prg[i_prg]->i_number,
(int64_t)(VLC_TS_0 + i_pcr * 100 / 9) );
}
}
}
}
}
static bool GatherPES( demux_t *p_demux, ts_pid_t *pid, block_t *p_bk )
......
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