summaryrefslogtreecommitdiffstats
path: root/sub/dec_sub.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-12-05 23:55:35 +0100
committerwm4 <wm4@nowhere>2015-12-05 23:55:35 +0100
commit9a240dc82e442a2f1d3d383c4b32f3eaab0a1f6a (patch)
treef785e15828be5a0146553686cf8b7c54c8bf3bc7 /sub/dec_sub.c
parenta7cf0915191f6f01f6d66534aba98d6cbf7996f5 (diff)
downloadmpv-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 'sub/dec_sub.c')
0 files changed, 0 insertions, 0 deletions