[vlc-commits] demux: ts: only set self pcr to its program

Francois Cartegnie git at videolan.org
Sun Mar 15 22:28:52 CET 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sun Mar 15 22:27:05 2015 +0100| [70d44c22d0c3ec84363b17d437b5bdd7aced91c4] | committer: Francois Cartegnie

demux: ts: only set self pcr to its program

We can't support shared pid/pcr for now

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=70d44c22d0c3ec84363b17d437b5bdd7aced91c4
---

 modules/demux/ts.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index c4435e3..3182989 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -2983,7 +2983,7 @@ static void PCRHandle( demux_t *p_demux, ts_pid_t *pid, block_t *p_bk )
 
         if( p_pmt->i_pid_pcr == 0x1FFF ) /* That program has no dedicated PCR pid ISO/IEC 13818-1 2.4.4.9 */
         {
-            if( pid->p_parent ) /* PCR shall be on pid itself */
+            if( pid->p_parent == p_pat->programs.p_elems[i] ) /* PCR shall be on pid itself */
             {
                 /* ? update PCR for the whole group program ? */
                 ProgramSetPCR( p_demux, p_pmt, i_program_pcr );



More information about the vlc-commits mailing list