Skip to content
  • Filip Roséen's avatar
    mkv: fix playback/seek for files where first block has PTS > 0 · a254112b
    Filip Roséen authored and Thomas Guillem's avatar Thomas Guillem committed
    
    
    Some files do not have their first cluster at PTS=0, meaning that we
    might spend an eternity looking for such PTS (even though it is not at
    all present in the file) when starting playback (seeking to 0).
    
    This patch fixes the issue by always assigning a seekpoint for PTS=0 pointing
    at the first cluster position. Instead of using the cluster-timecode, a
    hardcoded value of 0 is used (so that every file will have a seekpoint at that
    location).
    
    Signed-off-by: default avatarThomas Guillem <thomas@gllm.fr>
    a254112b