Merge with MPC-HC commit 64c65c2a3d2fc384822dd35bfdbaaec965b32d0d Improve the naming of subtitles tracks.

Avoid showing an useless and ugly comma when possible.
Merge with MPC-HC commit 6d9b02d270a4ff0f725658d5a9339da62e58855e MPL2 subtitles: support MicroDVD tags.

Some MPL2 files use MicroDVD tags for formating. This is normally not supported but still quite common so better support it.
Merge with MPC-HC commit 8b03cd01642b1e18b562615bbc7278ed825140f7

* SRT subtitles: Make the ms part of the timecodes optional.

Some (possibly malformed) SRT files don't have the ms part in some timecodes. Instead of failing when parsing such files, we can consider that no information means that this part is 0.
Merge with MPC-HC commits 89ab140cb9ecbe56b406cbf26796fd29a843eae6 & a93c0977648f415b26eca4674929b21ed7b4fa12 Subtitles: fixed handling of WrapStyle flag again.
Merge with MPC-HC commit 82890cf19e9280a89710aab2f6726f27237be550

* DVBSub: Improve parsing: some subtitles could have been missing (1/3).

The latest subtitle received can be shown longer than it should have been but we can't rely on anything but the timeout which isn't precise.
Bugfix: return HRESULT as bool
Merge with MPC-HC commit 6a37f5c0d040d3b2bb4b9dbda41462bb5bd867b1

* DVBSub: Improve parsing: some subtitles could have been missing (2/3).

Correctly treats "mode change".
Merge with MPC-HC commit ccfe5807050360f371d582da23c8d5291527b530

* DVBSub: Improve parsing: some subtitles could have been missing (3/3).

Take into account page updates.

This commit fixes ticket #2751.
Eliminate signed/unsigned missed match warning
Merge with MPC-HC commit 8ac58fd2192732b17359864dd777bc8b4d3978f8

* DVBSub: Fix subtitles timing when buffering is enabled.
Merge with MPC-HC commit 9f504fcfb79dd05a14b0ef45682b6719fa4a849a

* VobSubFile: Use TRACE for debug messages.

We don't want to spam the users with probably useless error messages.

Thanks to clsid.
Merge with MPC-HC commit 1836020640a29511f8c0931783f112695cd58752

* VSFilter: Fix and update the blacklist.

- Ensure the blacklisting is applied as soon as possible when VSFilter tries to join the graph.
- Fix the incorrect string comparisons, the application name is always lowercase.
- Add some apps that are known to have incompatibility with VSFilter.

This commit is based on a patch by clsid.
Merge with MPC-HC commit 2fc627e924eae47174e682d775a3a5e4bc93492e

* PGS Subtitles: The palette was incorrectly parsed.

This commit fixes some cases where PGS subtitles were displayed with wrong colors or even not displayed at all.
Merge with MPC-HC commit 9b1274d3ee956b5fec1ecd651b0a464a9e2b2abc

* Fix incorrect calls to *scanf_s functions.

The documentation is quite unclear but it seems that all buffer sizes should be given as characters count rather bytes count.

Note that although the calls were incorrect, there was probably no real effect for users.
Merge with MPC-HC commit 95abda47e046d0739b5f0dda8ba342a576f5593a

* DVB Subtitles: Simplify palette parsing.

Mimic 2fc627e for consistency.
Merge with MPC-HC commit 29552e8b1004d0e8c12768c077fc59a49e00ef6c

* DVB Subtitles: Fix a crash with some subtitles streams.

Correctly follow the specs when parsing the display size.

This commit fixes #2931.
This fixes a crash