Nevcairiel/LAVFilters — pull request #15 by Underground78 (2014-05-10 13:44:53+00:00)
Title: DVD subtitles

Those commits are the result of some testings done to understand MPC-HC tickets reporting strange behavior with DVD subtitles.

I've kept the first one (https://github.com/Underground78/lavfilters/commit/4b7628c329eccc9453215f4d146c4eef71e61270) even though it's overridden by the second commit because it's the only one that seems like a real bug. Some parenthesis got lost and changed the meaning of the test to decide whether rendering a sub or not.

The two others are attempts to improve the behavior when the timings are unknown:
- https://github.com/Underground78/lavfilters/commit/ad351d9ddf408a58ed32a59668cfc1b913835188 ensures that the end time is checked so that https://github.com/Underground78/lavfilters/commit/38ff1fe16afc20aa7f774fed2c1691bfa4f2b5c2 has more effect. It also ensures that the fading support is disabled when the timings are unknown since it confuses the renderer even more by introducing subtitles with completely funky timings.
- https://github.com/Underground78/lavfilters/commit/18923a585c1a25d3f71eb5a4ad4da4d7797b3ade completely prevents rendering more than one subtitle at a time. It tries to render the more recent one unless a known end time that matches is found.