]> git.sesse.net Git - vlc/commitdiff
demux: ts: only set self pcr to its program
authorFrancois Cartegnie <fcvlcdev@free.fr>
Sun, 15 Mar 2015 21:27:05 +0000 (22:27 +0100)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Sun, 15 Mar 2015 21:27:05 +0000 (22:27 +0100)
We can't support shared pid/pcr for now

modules/demux/ts.c

index c4435e35f30c328e107f5c50eccc1b65ecc93313..31829898dc9235d982b0c80beafcb05b14d69d72 100644 (file)
@@ -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 );