[vlc-commits] demux: ts: fix cross program PCR regression

Francois Cartegnie git at videolan.org
Thu Feb 5 20:21:21 CET 2015


vlc/vlc-2.2 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Feb  5 20:20:01 2015 +0100| [2d59a46047f47665c4dfb1805cc38ae3352853c5] | committer: Felix Paul Kühne

demux: ts: fix cross program PCR regression

Signed-off-by: Felix Paul Kühne <fkuehne at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=2d59a46047f47665c4dfb1805cc38ae3352853c5
---

 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 8c78b5f..5cc580b 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -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 );
 
     /* 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++ )
     {
         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++ )
         {



More information about the vlc-commits mailing list