[vlc-commits] demux: ts: fix program cross PCR regression
Francois Cartegnie
git at videolan.org
Thu Feb 5 19:58:41 CET 2015
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Feb 5 19:54:12 2015 +0100| [4ab1ae0f6f3f1ca2a548bf178c4b1e6846205b32] | committer: Francois Cartegnie
demux: ts: fix program cross PCR regression
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4ab1ae0f6f3f1ca2a548bf178c4b1e6846205b32
---
modules/demux/ts.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index e16f342..5479c3a 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -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];
More information about the vlc-commits
mailing list