• yhuelf's avatar
    demux/mp4: fix PTS computation · 5a72f814
    yhuelf authored
    p_sample_offset_pts must be NULL if MP4_TRUN_SAMPLE_TIME_OFFSET is not
    present. Then MP4_TrackGetPTSDelta would return -1 (instead of 0
    previously), and PTS of video frames would be set to VLC_TS_INVALID,
    which is the right thing to do in that case.
    Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
    5a72f814
mp4.c 125 KB