[vlc-devel] [PATCH 03/13] es_out: add the ES_OUT_SET_FIRST_PCR control

Thomas Guillem thomas at gllm.fr
Thu Aug 22 11:00:25 CEST 2019



On Wed, Aug 21, 2019, at 19:16, Rémi Denis-Courmont wrote:
> Le keskiviikkona 21. elokuuta 2019, 17.13.54 EEST Thomas Guillem a écrit :
> > In order to check if a module need this control, one should check the
> > DEMUX_GET_TIME implementation for a subtraction with a first_pcr member.
> 
> That does not sound right. AFAIK, some demuxers use 0 and some 1 as their 
> start timestamp, but this seems to assume always 0.

Ah yes, I could set it to 1 by default then.

Is having a possible off by 10^-6 us conceivable in the case the demuxer origin is not 1 ?

> 
> As for the TS demuxer, I think its current time has nothing to do with the PCR 
> whatsoever.

Ah ?

In demux/mpeg/ts.c:
    case DEMUX_GET_TIME:
         ...
        *va_arg( args, vlc_tick_t * ) = FROM_SCALE(i_pcr - p_pmt->pcr.i_first);

Ah you saying the FIRST_PCR naming is not correct ? What do you propose then?

> 
> -- 
> 雷米‧德尼-库尔蒙
> http://www.remlab.net/
> 
> 
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel


More information about the vlc-devel mailing list