summaryrefslogtreecommitdiffstats
path: root/player/lua/osc.lua
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-08-27 23:45:02 +0200
committerwm4 <wm4@nowhere>2015-08-27 23:45:02 +0200
commitc61675320b6f04684677e7064b0d6e38f6b23547 (patch)
tree64ddfb5fb2a77d29fd1cad297475e4c73053b970 /player/lua/osc.lua
parent3c86bd2bb521fd006070709e1f68d672be1937f9 (diff)
downloadmpv-c61675320b6f04684677e7064b0d6e38f6b23547.tar.bz2
mpv-c61675320b6f04684677e7064b0d6e38f6b23547.tar.xz
sd_ass: assume negative durations are unknown durations, and handle them
The FFmpeg can officially not distinguish between unknown subtitle durations, and subtitle durations being 0. (It documents the value 0 meaning unknown duration.) In practice, at least the LRC demuxer signals unknown subtitle durations with a negative value. Assume negative durations mean unknown duration. Show subtitles with unknown duration forever. Unless there's a subtitle event following it; then reset the duration so that it ends on the new subtitle event. Fixes #2244.
Diffstat (limited to 'player/lua/osc.lua')
0 files changed, 0 insertions, 0 deletions