[vlc-devel] [PATCH 2/3] demux: avformat: fix negative PTS/DTS

Francois Cartegnie fcvlcdev at free.fr
Thu Aug 31 19:06:49 CEST 2017

Le 31/08/2017 à 15:32, Zhao Zhili a écrit :
> 2. Otherwise, which most likely means the negative PTS and DTS is produced
> by shift, then shift start_time to produced positive timestamps.

If that's MP4, that's either a media issue or an avformat one.
There should be enough information to shift up all values.

> 3. PTS/DTS wrap can lead to negative timestamps too, which is harder to
> handle.
> Don't distinguish this case from case 2.

TS Wrap ? I don't think it can happen, and it is handled by the library

Francois Cartegnie
VideoLAN - VLC Developer

More information about the vlc-devel mailing list