Skip to content
  • Filip Roséen's avatar
    mkv: add every seen subtitle block as seekpoint · 2dba57ca
    Filip Roséen authored and Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf committed
    
    
    Currently there are issues outside of the demuxer that does not allow us
    to display an "on-going" subtitle if we seek to a location where a
    subtitle has started, but yet finished.
    
    Since there are several mkv files in the wild where there is no proper
    mkv-cue for every subtitle, we should add every subtitle block we see as
    an index; and then use this for seeking (if we know about it, and have
    to).
    
    In general, every subtitle block is effectively a "keyframe"; meaning
    that this hack is safe (at least enough to justify its purpose). Having
    seekpoints for the subtitle track will allow us to send it to the
    relevant decoder, and after we have support for "unfinished" subtitles;
    mkv's will magically play along nicely.
    
    Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
    2dba57ca