diff options
author | wm4 <wm4@nowhere> | 2015-12-05 23:55:35 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-12-05 23:55:35 +0100 |
commit | 9a240dc82e442a2f1d3d383c4b32f3eaab0a1f6a (patch) | |
tree | f785e15828be5a0146553686cf8b7c54c8bf3bc7 /player/video.c | |
parent | a7cf0915191f6f01f6d66534aba98d6cbf7996f5 (diff) | |
download | mpv-9a240dc82e442a2f1d3d383c4b32f3eaab0a1f6a.tar.bz2 mpv-9a240dc82e442a2f1d3d383c4b32f3eaab0a1f6a.tar.xz |
sd_lavc: discard empty subtitles and improve sub_seek behavior
Image subtitles often use a "signaling" packet to set the end time of
the previous subtitle. As far as the libavcodec API is concerned, such
packets decode to empty AVSubtitles. Discard these after the end time of
the previous subtitle has been set.
Keep track of the per-subtitle end time better. This is for the sake of
improving sub_step/sub_seek. Without this, it would seek to the sub
before the previous sub, if the current sub has ended displaying.
Diffstat (limited to 'player/video.c')
0 files changed, 0 insertions, 0 deletions