[vlc-devel] [vlc-commits] TS demux: set PCR for all programs

Francois Cartegnie fcvlcdev at free.fr
Thu Jul 17 02:59:41 CEST 2014

> Unconditionally use the PTS/DTS as PCR, which fixes automatically
> lack of PCR.

> +        es_out_Control( p_demux->out, ES_OUT_SET_GROUP_PCR,
> +                pid->i_owner_number, p_block->i_pts);

You can't do that "as-is". That was the root of many problems on other
PCR must be set to the lowest DTS among continuous tracks.

"as is" will introduce those problems:
- Audio shutdown with 2Sec jitter
- Missing track(s) if jitter > buffering and duration < buffering
- Erroneous progress time
- Erroneous start time/stop time


More information about the vlc-devel mailing list