1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-24 07:42:17 +00:00

demux_mkv: support Blu-ray subtitles

Recognize "S_HDMV/PGS" CodecID.
This commit is contained in:
Uoti Urpala 2011-03-31 03:31:46 +03:00
parent 9d4d5b4469
commit a8b93d4c81
2 changed files with 3 additions and 0 deletions

View File

@ -613,6 +613,8 @@ static void parse_trackentry(struct demuxer *demuxer,
else if (!strcmp(track->codec_id, MKV_S_TEXTASCII)
|| !strcmp(track->codec_id, MKV_S_TEXTUTF8))
track->subtitle_type = 't';
else if (!strcmp(track->codec_id, MKV_S_PGS))
track->subtitle_type = 'p';
mp_msg(MSGT_DEMUX, MSGL_V, "[mkv] | + Codec ID: %s\n",
track->codec_id);
} else

View File

@ -78,6 +78,7 @@
#define MKV_S_TEXTSSA "S_TEXT/SSA"
#define MKV_S_TEXTASS "S_TEXT/ASS"
#define MKV_S_VOBSUB "S_VOBSUB"
#define MKV_S_PGS "S_HDMV/PGS"
#define MKV_S_SSA "S_SSA" // Deprecated
#define MKV_S_ASS "S_ASS" // Deprecated