[vlc-devel] [PATCH] MKV: rework the PCR to match what avformat does
Rémi Denis-Courmont
remi at remlab.net
Fri Mar 13 05:50:53 CET 2015
Le 2015-03-12 21:23, Steve Lhomme a écrit :
> Well, there's the case of 0. It's not set because that's also the
> value of VLC_TS_INVALID. Should they be shifted with VLC_TS_0 ? Will
> there be issues between the actual pts/dts of the packet if they are
> not shifted ?
PCR, PTS or DTS should always be shifted by VLC_TS_0 if zero is a legal
value in the stream.
You're welcome to fix all abuses of 0 as VLC_TS_INVALID though. Once
that is done, you can use INT64_MIN for VLC_TS_INVALID and 0 for
VLC_TS_0.
--
Rémi Denis-Courmont
More information about the vlc-devel
mailing list